[premake] Formatting, cleanup

This commit is contained in:
Margen67 2025-07-31 00:02:01 -07:00
parent 37e3fe9eb6
commit 833f938a64
10 changed files with 24 additions and 130 deletions

View file

@ -68,7 +68,7 @@ filter({"configurations:Checked or Debug", "platforms:Linux"})
"_GLIBCXX_DEBUG", -- libstdc++ debug mode "_GLIBCXX_DEBUG", -- libstdc++ debug mode
}) })
filter({"configurations:Checked or Debug", "platforms:Windows"}) filter({"configurations:Checked or Debug", "platforms:Windows"}) -- "toolset:msc"
symbols("Full") symbols("Full")
filter("configurations:Debug") filter("configurations:Debug")

View file

@ -21,86 +21,6 @@ project("SDL2")
}) })
files({ files({
-- 1:1 from SDL2/VisualC/SDL/SDL.vcxproj file -- 1:1 from SDL2/VisualC/SDL/SDL.vcxproj file
"SDL2/include/begin_code.h",
"SDL2/include/close_code.h",
"SDL2/include/SDL.h",
"SDL2/include/SDL_assert.h",
"SDL2/include/SDL_atomic.h",
"SDL2/include/SDL_audio.h",
"SDL2/include/SDL_bits.h",
"SDL2/include/SDL_blendmode.h",
"SDL2/include/SDL_clipboard.h",
"SDL2/include/SDL_config.h",
"SDL2/include/SDL_config_windows.h",
"SDL2/include/SDL_copying.h",
"SDL2/include/SDL_cpuinfo.h",
"SDL2/include/SDL_egl.h",
"SDL2/include/SDL_endian.h",
"SDL2/include/SDL_error.h",
"SDL2/include/SDL_events.h",
"SDL2/include/SDL_filesystem.h",
"SDL2/include/SDL_gamecontroller.h",
"SDL2/include/SDL_gesture.h",
"SDL2/include/SDL_guid.h",
"SDL2/include/SDL_haptic.h",
"SDL2/include/SDL_hints.h",
"SDL2/include/SDL_hidapi.h",
"SDL2/include/SDL_joystick.h",
"SDL2/include/SDL_keyboard.h",
"SDL2/include/SDL_keycode.h",
"SDL2/include/SDL_loadso.h",
"SDL2/include/SDL_locale.h",
"SDL2/include/SDL_log.h",
"SDL2/include/SDL_main.h",
"SDL2/include/SDL_messagebox.h",
"SDL2/include/SDL_metal.h",
"SDL2/include/SDL_misc.h",
"SDL2/include/SDL_mouse.h",
"SDL2/include/SDL_mutex.h",
"SDL2/include/SDL_name.h",
"SDL2/include/SDL_opengl.h",
"SDL2/include/SDL_opengl_glext.h",
"SDL2/include/SDL_opengles.h",
"SDL2/include/SDL_opengles2.h",
"SDL2/include/SDL_opengles2_gl2.h",
"SDL2/include/SDL_opengles2_gl2ext.h",
"SDL2/include/SDL_opengles2_gl2platform.h",
"SDL2/include/SDL_opengles2_khrplatform.h",
"SDL2/include/SDL_pixels.h",
"SDL2/include/SDL_platform.h",
"SDL2/include/SDL_power.h",
"SDL2/include/SDL_quit.h",
"SDL2/include/SDL_rect.h",
"SDL2/include/SDL_render.h",
"SDL2/include/SDL_revision.h",
"SDL2/include/SDL_rwops.h",
"SDL2/include/SDL_scancode.h",
"SDL2/include/SDL_sensor.h",
"SDL2/include/SDL_shape.h",
"SDL2/include/SDL_stdinc.h",
"SDL2/include/SDL_surface.h",
"SDL2/include/SDL_system.h",
"SDL2/include/SDL_syswm.h",
"SDL2/include/SDL_test.h",
"SDL2/include/SDL_test_assert.h",
"SDL2/include/SDL_test_common.h",
"SDL2/include/SDL_test_compare.h",
"SDL2/include/SDL_test_crc32.h",
"SDL2/include/SDL_test_font.h",
"SDL2/include/SDL_test_fuzzer.h",
"SDL2/include/SDL_test_harness.h",
"SDL2/include/SDL_test_images.h",
"SDL2/include/SDL_test_log.h",
"SDL2/include/SDL_test_md5.h",
"SDL2/include/SDL_test_memory.h",
"SDL2/include/SDL_test_random.h",
"SDL2/include/SDL_thread.h",
"SDL2/include/SDL_timer.h",
"SDL2/include/SDL_touch.h",
"SDL2/include/SDL_types.h",
"SDL2/include/SDL_version.h",
"SDL2/include/SDL_video.h",
"SDL2/include/SDL_vulkan.h",
"SDL2/src/audio/directsound/SDL_directsound.h", "SDL2/src/audio/directsound/SDL_directsound.h",
"SDL2/src/audio/disk/SDL_diskaudio.h", "SDL2/src/audio/disk/SDL_diskaudio.h",
"SDL2/src/audio/dummy/SDL_dummyaudio.h", "SDL2/src/audio/dummy/SDL_dummyaudio.h",

View file

@ -7,6 +7,5 @@ project("aes_128")
"aes_128", "aes_128",
}) })
files({ files({
"aes_128/aes.h",
"aes_128/unroll/aes.c", "aes_128/unroll/aes.c",
}) })

View file

@ -15,23 +15,12 @@ project("capstone")
}) })
files({ files({
"capstone/cs.c", "capstone/cs.c",
"capstone/cs_priv.h",
"capstone/LEB128.h",
"capstone/MathExtras.h",
"capstone/MCDisassembler.h",
"capstone/MCFixedLenDisassembler.h",
"capstone/MCInst.c", "capstone/MCInst.c",
"capstone/MCInst.h",
"capstone/MCInstrDesc.c", "capstone/MCInstrDesc.c",
"capstone/MCInstrDesc.h",
"capstone/MCRegisterInfo.c", "capstone/MCRegisterInfo.c",
"capstone/MCRegisterInfo.h",
"capstone/SStream.c", "capstone/SStream.c",
"capstone/SStream.h",
"capstone/utils.c", "capstone/utils.c",
"capstone/utils.h",
"capstone/Mapping.c", "capstone/Mapping.c",
"capstone/Mapping.h",
"capstone/arch/X86/*.c", "capstone/arch/X86/*.c",
"capstone/arch/X86/*.h", "capstone/arch/X86/*.h",

View file

@ -8,5 +8,4 @@ project("dxbc")
}) })
files({ files({
"dxbc/DXBCChecksum.cpp", "dxbc/DXBCChecksum.cpp",
"dxbc/DXBCChecksum.h",
}) })

View file

@ -7,15 +7,9 @@ project("imgui")
"imgui", "imgui",
}) })
files({ files({
"imgui/imconfig.h",
"imgui/imgui.cpp", "imgui/imgui.cpp",
"imgui/imgui.h",
"imgui/imgui_demo.cpp", "imgui/imgui_demo.cpp",
"imgui/imgui_draw.cpp", "imgui/imgui_draw.cpp",
"imgui/imgui_internal.h",
"imgui/imgui_tables.cpp", "imgui/imgui_tables.cpp",
"imgui/imgui_widgets.cpp", "imgui/imgui_widgets.cpp",
"imgui/imstb_rectpack.h",
"imgui/imstb_textedit.h",
"imgui/imstb_truetype.h",
}) })

View file

@ -3,7 +3,7 @@ project("libusb")
uuid("5f8b5485-fde5-4a42-8a13-8545fcf6d25b") uuid("5f8b5485-fde5-4a42-8a13-8545fcf6d25b")
kind("StaticLib") kind("StaticLib")
language("C") language("C")
includedirs({"libusb/libusb/"}) includedirs({"libusb/libusb"})
files({ files({
"libusb/libusb/core.c", "libusb/libusb/core.c",
@ -15,7 +15,7 @@ project("libusb")
}) })
filter({"platforms:Windows"}) filter({"platforms:Windows"})
includedirs({"libusb/msvc/"}) includedirs({"libusb/msvc"})
files({ files({
"libusb/libusb/os/events_windows.c", "libusb/libusb/os/events_windows.c",
"libusb/libusb/os/events_windows.h", "libusb/libusb/os/events_windows.h",

View file

@ -14,11 +14,6 @@ project("mspack")
}) })
files({ files({
"mspack/logging.cc", "mspack/logging.cc",
"mspack/lzx.h",
"mspack/lzxd.c", "mspack/lzxd.c",
"mspack/mspack.h",
"mspack/readbits.h",
"mspack/readhuff.h",
"mspack/system.c", "mspack/system.c",
"mspack/system.h",
}) })

View file

@ -8,5 +8,4 @@ project("xxhash")
}) })
files({ files({
"xxhash/xxhash.c", "xxhash/xxhash.c",
"xxhash/xxhash.h",
}) })

43
third_party/zstd.lua vendored
View file

@ -19,65 +19,65 @@ function project_zstd(dir, compression, decompression, deprecated, dictbuilder,
deprecated = false deprecated = false
end end
project 'zstd' project "zstd"
kind 'StaticLib' kind "StaticLib"
language 'C' language "C"
files { files {
dir .. 'zstd.h', dir .. "zstd.h",
dir .. 'common/**.c', dir .. "common/**.c",
dir .. 'common/**.h' dir .. "common/**.h"
} }
if compression then if compression then
files { files {
dir .. 'compress/**.c', dir .. "compress/**.c",
dir .. 'compress/**.h' dir .. "compress/**.h"
} }
end end
if decompression then if decompression then
files { files {
dir .. 'decompress/**.c', dir .. "decompress/**.c",
dir .. 'decompress/**.h' dir .. "decompress/**.h"
} }
end end
if dictbuilder then if dictbuilder then
files { files {
dir .. 'dictBuilder/**.c', dir .. "dictBuilder/**.c",
dir .. 'dictBuilder/**.h' dir .. "dictBuilder/**.h"
} }
end end
if deprecated then if deprecated then
files { files {
dir .. 'deprecated/**.c', dir .. "deprecated/**.c",
dir .. 'deprecated/**.h' dir .. "deprecated/**.h"
} }
end end
if legacy ~= 0 then if legacy ~= 0 then
if legacy >= 8 then if legacy >= 8 then
files { files {
dir .. 'legacy/zstd_v0' .. (legacy - 7) .. '.*' dir .. "legacy/zstd_v0" .. (legacy - 7) .. ".*"
} }
end end
includedirs { includedirs {
dir .. 'legacy' dir .. "legacy"
} }
end end
includedirs { includedirs {
dir, dir,
dir .. 'common' dir .. "common"
} }
defines { defines {
'XXH_NAMESPACE=ZSTD_', "XXH_NAMESPACE=ZSTD_",
-- See here on why: https://gitlab.kitware.com/cmake/cmake/-/issues/25744 -- See here on why: https://gitlab.kitware.com/cmake/cmake/-/issues/25744
'ZSTD_DISABLE_ASM=1', "ZSTD_DISABLE_ASM=1",
'ZSTD_LEGACY_SUPPORT=' .. legacy "ZSTD_LEGACY_SUPPORT=" .. legacy
} }
end end
@ -85,5 +85,4 @@ end
group("third_party") group("third_party")
project("zstd") project("zstd")
uuid("df336aac-f0c8-11ed-a05b-0242ac120003") uuid("df336aac-f0c8-11ed-a05b-0242ac120003")
project_zstd('./zstd/lib/') project_zstd("./zstd/lib/")