Skip to content

Commit

Permalink
wscript: enable menu and game_shared compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
a1batross committed Aug 3, 2024
1 parent d8a772d commit d518e67
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ def options(opt):
grp.add_option('--disable-werror', action = 'store_true', dest = 'DISABLE_WERROR', default = False,
help = 'disable compilation abort on warning')

opt.add_subproject('dlls')
opt.add_subproject('cl_dll')
opt.add_subproject('dlls cl_dll game_shared mainui')

def configure(conf):
conf.load('fwgslib reconfigure compiler_optimizations')
Expand Down Expand Up @@ -104,6 +103,7 @@ def configure(conf):
opt_flags = [
# '-Wall', '-Wextra', '-Wpedantic',
'-fdiagnostics-color=always',
'-Wno-write-strings',

# stable diagnostics, forced to error, sorted
'-Werror=bool-compare',
Expand Down Expand Up @@ -231,14 +231,12 @@ def configure(conf):
conf.env.cxxshlib_PATTERN = conf.env.cxxshlib_PATTERN[3:]

conf.load('library_naming')
conf.add_subproject('dlls')
conf.add_subproject('cl_dll')
conf.add_subproject('dlls cl_dll game_shared mainui')

def build(bld):
# don't clean QtCreator files and reconfigure saved options
bld.clean_files = bld.bldnode.ant_glob('**',
excl='*.user configuration.py .lock* *conf_check_*/** config.log %s/*' % Build.CACHE_DIR,
quiet=True, generator=True)

bld.add_subproject('dlls')
bld.add_subproject('cl_dll')
bld.add_subproject('dlls cl_dll game_shared mainui')

0 comments on commit d518e67

Please sign in to comment.