From 7753c4567d4a17b391d713a3df038b3902ba8c7a Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sun, 21 Jan 2018 01:23:37 +0000 Subject: [PATCH] Fixes linux. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3416 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- SConstruct | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) 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':