Lots of stuff

This commit is contained in:
Bottersnike
2023-07-07 12:58:55 +01:00
parent 50737e6011
commit 3423861c3c
142 changed files with 18602 additions and 1784 deletions

View File

@@ -5,17 +5,38 @@ project('micetools', 'c', default_options: [
'warning_level=3',
])
winxp = true
subsystem = 'console,5.01'
add_global_arguments('-DMICE_VERSION=' + '"' + get_option('mice_version') + '"', language : 'c')
if get_option('win64')
add_project_arguments(
'/D_AMD64_',
language: 'c',
)
winxp = false
subsystem = 'console'
else
add_project_arguments(
'/D_X86_',
language: 'c',
)
winxp = true
subsystem = 'console,5.01'
endif
if (host_machine.cpu_family() == 'x86')
add_project_arguments('-DMICE_WIN32', language: 'c')
endif
openssl_inc = include_directories('openssl-1.0.1/include')
openssl_lib = meson.get_compiler('c').find_library('libeay32', dirs: [
join_paths(meson.source_root(), 'openssl-1.0.1/lib')
], required: true)
if get_option('win64')
openssl_lib = meson.get_compiler('c').find_library('libeay64', dirs: [
join_paths(meson.source_root(), 'openssl-1.0.1/lib')
], required: true)
else
openssl_lib = meson.get_compiler('c').find_library('libeay32', dirs: [
join_paths(meson.source_root(), 'openssl-1.0.1/lib')
], required: true)
endif
assert(openssl_lib.found(), 'Please download openssl!')
freeglut_lib = meson.get_compiler('c').find_library('freeglut', dirs: [
@@ -27,9 +48,13 @@ add_project_link_arguments(
'/DYNAMICBASE',
'/OPT:REF',
'/LTCG',
'/IGNORE:4099', # no PDBs
language: 'c'
)
add_project_link_arguments(
'/IGNORE:4099', # no PDBs
language: 'cpp'
)
add_project_arguments(
'/DWIN32_LEAN_AND_MEAN', # Strip out headers we don't really need
'/D_WIN32_WINNT=_WIN32_WINNT_WINXP', # hahahahaha I hate it
@@ -54,6 +79,9 @@ add_project_arguments(
'/we4057', # ... differs in levels of indirection (slightly) from ...
'/we4024', # ... different types for formal and actual paramter ...
'/we4013', # ... undefined; assuming extern returning int
'/we4431', # missing type specifier - int assumed.
'/W4',
language: 'c',
)