Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: third_party/libxslt/libxslt.scons

Issue 15051: Convert from using env['PLATFORM'] directly to using the more flexible... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/libxml/libxml.scons ('k') | third_party/lzma_sdk/lzma_sdk.scons » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2008, Google Inc. 1 # Copyright 2008, Google Inc.
2 # All rights reserved. 2 # All rights reserved.
3 # 3 #
4 # Redistribution and use in source and binary forms, with or without 4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are 5 # modification, are permitted provided that the following conditions are
6 # met: 6 # met:
7 # 7 #
8 # * Redistributions of source code must retain the above copyright 8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer. 9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above 10 # * Redistributions in binary form must reproduce the above
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 ) 48 )
49 49
50 env.Append( 50 env.Append(
51 CPPDEFINES = [ 51 CPPDEFINES = [
52 'U_STATIC_IMPLEMENTATION', 52 'U_STATIC_IMPLEMENTATION',
53 'LIBXML_STATIC', 53 'LIBXML_STATIC',
54 'LIBXSLT_STATIC', 54 'LIBXSLT_STATIC',
55 ], 55 ],
56 ) 56 )
57 57
58 if env['PLATFORM'] == 'win32': 58 if env.Bit('windows'):
59 env.Append( 59 env.Append(
60 CCFLAGS = [ 60 CCFLAGS = [
61 '/TC', 61 '/TC',
62 '/wd4800', 62 '/wd4800',
63 ], 63 ],
64 ) 64 )
65 65
66 66
67 input_files = [ 67 input_files = [
68 'libxslt/attributes.c', 68 'libxslt/attributes.c',
(...skipping 12 matching lines...) Expand all
81 'libxslt/templates.c', 81 'libxslt/templates.c',
82 'libxslt/transform.c', 82 'libxslt/transform.c',
83 'libxslt/variables.c', 83 'libxslt/variables.c',
84 'libxslt/xslt.c', 84 'libxslt/xslt.c',
85 'libxslt/xsltutils.c', 85 'libxslt/xsltutils.c',
86 ] 86 ]
87 87
88 env.ChromeStaticLibrary('libxslt', input_files) 88 env.ChromeStaticLibrary('libxslt', input_files)
89 89
90 90
91 if env['PLATFORM'] == 'win32': 91 if env.Bit('windows'):
92 config_files = [ 92 config_files = [
93 # The configure.js script must be first in this list; the 93 # The configure.js script must be first in this list; the
94 # env.Command() call below executes the first list element. 94 # env.Command() call below executes the first list element.
95 95
96 'win32/configure.js', 96 'win32/configure.js',
97 'win32/Makefile.msvc', 97 'win32/Makefile.msvc',
98 98
99 'config.h.in', 99 'config.h.in',
100 'configure.in', 100 'configure.in',
101 'libexslt.pc.in', 101 'libexslt.pc.in',
(...skipping 11 matching lines...) Expand all
113 113
114 copied_sources = [] 114 copied_sources = []
115 for cf in config_files: 115 for cf in config_files:
116 result = env.Command('scons/' + cf, cf, Copy('$TARGET', '$SOURCE')) 116 result = env.Command('scons/' + cf, cf, Copy('$TARGET', '$SOURCE'))
117 copied_sources.extend(result) 117 copied_sources.extend(result)
118 118
119 env.Command(['scons/config.h'], 119 env.Command(['scons/config.h'],
120 copied_sources, 120 copied_sources,
121 'cd ${SOURCE.dir} && $CSCRIPT ${SOURCE.file} $CONFIG_OPTIONS', 121 'cd ${SOURCE.dir} && $CSCRIPT ${SOURCE.file} $CONFIG_OPTIONS',
122 CONFIG_OPTIONS='compiler=msvc') 122 CONFIG_OPTIONS='compiler=msvc')
123 elif env['PLATFORM'] == 'posix': 123 elif env.Bit('linux'):
124 config_files = [ 124 config_files = [
125 'config.h', 125 'config.h',
126 'xslt-config', 126 'xslt-config',
127 'libexslt/exsltconfig.h', 127 'libexslt/exsltconfig.h',
128 'libxslt/xsltconfig.h', 128 'libxslt/xsltconfig.h',
129 'libxslt/xsltwin32config.h', 129 'libxslt/xsltwin32config.h',
130 ] 130 ]
131 for cf in config_files: 131 for cf in config_files:
132 result = env.Command('scons/' + cf, 'linux/' + cf, 132 result = env.Command('scons/' + cf, 'linux/' + cf,
133 Copy('$TARGET', '$SOURCE')) 133 Copy('$TARGET', '$SOURCE'))
134 134
OLDNEW
« no previous file with comments | « third_party/libxml/libxml.scons ('k') | third_party/lzma_sdk/lzma_sdk.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698