Skip to content

Commit

Permalink
waf: don't install some shared libraries when building sdk only
Browse files Browse the repository at this point in the history
  • Loading branch information
nillerusr committed May 24, 2023
1 parent 8b1be47 commit 226d22b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion stub_steam/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,16 @@ def build(bld):

libs = []

install_path = None if bld.env.BUILD_SDK else bld.env.LIBDIR

bld.shlib(
source = source,
target = PROJECT_NAME,
name = PROJECT_NAME,
features = 'c cxx',
includes = includes,
defines = defines,
install_path = bld.env.LIBDIR,
install_path = install_path,
use = libs,
subsystem = bld.env.MSVC_SUBSYSTEM,
idx = bld.get_taskgen_count()
Expand Down
2 changes: 1 addition & 1 deletion tier0/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def build(bld):
else:
libs = ['DL', 'M', 'LOG']

install_path = bld.env.LIBDIR
install_path = None if bld.env.BUILD_SDK else bld.env.LIBDIR

bld.shlib(
source = source,
Expand Down
2 changes: 1 addition & 1 deletion vstdlib/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def build(bld):
elif bld.env.DEST_OS == 'darwin':
linkflags += ['-framework', 'CoreServices']

install_path = bld.env.LIBDIR
install_path = None if bld.env.BUILD_SDK else bld.env.LIBDIR

bld.shlib(
source = source,
Expand Down

0 comments on commit 226d22b

Please sign in to comment.