summaryrefslogtreecommitdiffstats
path: root/third_party/lzma_sdk
diff options
context:
space:
mode:
authorsgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-07-31 21:32:20 +0000
committersgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-07-31 21:32:20 +0000
commit14d15d4d94826de272025415192e9f9edaf733c1 (patch)
tree67a34aa679a42bfae84f9792f43b863128ca2243 /third_party/lzma_sdk
parentbdad42a47f2dfa5783554844d54337454256a0a3 (diff)
downloadchromium_src-14d15d4d94826de272025415192e9f9edaf733c1.zip
chromium_src-14d15d4d94826de272025415192e9f9edaf733c1.tar.gz
chromium_src-14d15d4d94826de272025415192e9f9edaf733c1.tar.bz2
Get SCons building Windows again without having to Import()/re-Export(): use the $PLATFORM construction variable supplied in the construction environment instead of passing around our own PLATFORM variable in Python.
R=keunwoo,evanm git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/lzma_sdk')
-rw-r--r--third_party/lzma_sdk/SConscript23
1 files changed, 11 insertions, 12 deletions
diff --git a/third_party/lzma_sdk/SConscript b/third_party/lzma_sdk/SConscript
index 537d45f..de35112 100644
--- a/third_party/lzma_sdk/SConscript
+++ b/third_party/lzma_sdk/SConscript
@@ -28,7 +28,6 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Import('env')
-Import('PLATFORM')
env = env.Clone(
)
@@ -47,7 +46,7 @@ env.Append(
],
)
-if PLATFORM == 'WINDOWS':
+if env['PLATFORM'] == 'win32':
env.Append(
CCFLAGS = [
'/TC',
@@ -56,18 +55,18 @@ if PLATFORM == 'WINDOWS':
)
input_files = [
- 'Compress/Lzma/LzmaDecode.c',
- 'Archive/7z/7zMethodID.c',
- 'Archive/7z/7zItem.c',
- 'Archive/7z/7zIn.c',
- 'Archive/7z/7zHeader.c',
- 'Archive/7z/7zExtract.c',
- 'Archive/7z/7zDecode.c',
- 'Archive/7z/7zBuffer.c',
+ '7zCrc.c',
'Archive/7z/7zAlloc.c',
- 'Compress/Branch/BranchX86_2.c',
+ 'Archive/7z/7zBuffer.c',
+ 'Archive/7z/7zDecode.c',
+ 'Archive/7z/7zExtract.c',
+ 'Archive/7z/7zHeader.c',
+ 'Archive/7z/7zIn.c',
+ 'Archive/7z/7zItem.c',
+ 'Archive/7z/7zMethodID.c',
'Compress/Branch/BranchX86.c',
- '7zCrc.c',
+ 'Compress/Branch/BranchX86_2.c',
+ 'Compress/Lzma/LzmaDecode.c',
]
env.StaticLibrary('lzma_sdk', input_files)