diff --git a/SConstruct b/SConstruct index 23450aeb..182add8b 100644 --- a/SConstruct +++ b/SConstruct @@ -43,15 +43,26 @@ if raspi: os.path.join(v8, 'out', 'arm.release', 'obj.target', 'third_party', 'icu', 'libicuuc.a'), ]) else: + env.Append(LIBPATH = [ + os.path.join(v8, 'out', 'obj'), + os.path.join(v8, 'out', 'obj', 'third_party', 'icu'), + ]) + if sys.platform == 'win32': + env.Append(LIBS = [ + 'v8_base_0', + 'v8_base_1', + ]) + else: + env.Append(LIBS = [ + 'v8_base', + ]) env.Append(LIBS = [ - os.path.join(v8, 'out', 'obj', 'v8_libplatform'), - os.path.join(v8, 'out', 'obj', 'v8_base_0'), - os.path.join(v8, 'out', 'obj', 'v8_base_1'), - os.path.join(v8, 'out', 'obj', 'v8_libbase'), - os.path.join(v8, 'out', 'obj', 'v8_libsampler'), - os.path.join(v8, 'out', 'obj', 'v8_snapshot'), - os.path.join(v8, 'out', 'obj', 'third_party', 'icu', 'icui18n'), - os.path.join(v8, 'out', 'obj', 'third_party', 'icu', 'icuuc'), + 'v8_libplatform', + 'v8_libbase', + 'v8_libsampler', + 'v8_snapshot', + 'icui18n', + 'icuuc', ]) if sys.platform == 'win32':