always define LIBCUBESCRIPT_BUILD for build

master
Daniel Kolesa 2021-04-01 04:39:13 +02:00
parent e2b65000d5
commit 039dec8ec5
1 changed files with 1 additions and 2 deletions

View File

@ -21,11 +21,10 @@ libcubescript_src = [
'lib_str.cc'
]
lib_cxxflags = []
lib_cxxflags = [ '-DLIBCUBESCRIPT_BUILD' ]
host_system = host_machine.system()
if host_system == 'windows' or host_system == 'cygwin'
lib_cxxflags += '-DLIBCUBESCRIPT_BUILD'
if get_option('default_library') != 'static'
lib_cxxflags += '-DLIBCUBESCRIPT_DLL'
endif