ill advised broken commit
This commit is contained in:
23
meson.build
23
meson.build
@@ -1,21 +1,40 @@
|
||||
project('micetools', 'c', default_options: [
|
||||
'buildtype=minsize',
|
||||
# ! Toggle /\ and \/ when building for XP (minsize=normal, static=XP)
|
||||
# 'b_vscrt=static_from_buildtype',
|
||||
'b_vscrt=static_from_buildtype',
|
||||
'warning_level=3',
|
||||
])
|
||||
|
||||
winxp = false
|
||||
winxp = true
|
||||
subsystem = 'console,5.01'
|
||||
|
||||
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)
|
||||
assert(openssl_lib.found(), 'Please download openssl!')
|
||||
|
||||
add_project_link_arguments(
|
||||
'/FIXED:NO',
|
||||
'/DYNAMICBASE',
|
||||
'/OPT:REF',
|
||||
'/LTCG',
|
||||
|
||||
language: 'c'
|
||||
)
|
||||
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
|
||||
|
||||
'/DCIMGUI_DEFINE_ENUMS_AND_STRUCTS',
|
||||
|
||||
# Strip out as much crud as we can to keep XP builds small
|
||||
'/Os', '/EHc-', '/EHa-', '/EHs-', '/GL', '/GR-',
|
||||
|
||||
'/wd4706', # assignment within conditional expression
|
||||
'/wd4214', # windns.h: nonstandard extension used: bit field types other than int
|
||||
'/wd4201', # ewfapi.h: nameless struct/union
|
||||
|
||||
Reference in New Issue
Block a user