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

Side by Side Diff: installer/linux/build.scons

Issue 174080: Linux: build a 32-bit Debian package too. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: Created 11 years, 4 months 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
OLDNEW
1 # Copyright 2009, Google Inc. 1 # Copyright 2009, 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 """dir=$OBJ_ROOT/installer/linux/""" + deb_build_tree + """ && \ 142 """dir=$OBJ_ROOT/installer/linux/""" + deb_build_tree + """ && \
143 cd $$dir && \ 143 cd $$dir && \
144 dpkg-buildpackage -b -uc -a""" + arch + """ -D -rfakeroot && \ 144 dpkg-buildpackage -b -uc -a""" + arch + """ -D -rfakeroot && \
145 cd $$OLDPWD && \ 145 cd $$OLDPWD && \
146 mv $$dir/../""" + package_file_name + """.deb \ 146 mv $$dir/../""" + package_file_name + """.deb \
147 $$(dirname $TARGET) && \ 147 $$(dirname $TARGET) && \
148 mv $$dir/../""" + package_file_name + """.changes \ 148 mv $$dir/../""" + package_file_name + """.changes \
149 $$(dirname $TARGET)""") 149 $$(dirname $TARGET)""")
150 return targets 150 return targets
151 151
152 152 # Build amd64 package.
153 BuildDebianPackage(["debian_amd64/changelog", 153 BuildDebianPackage(["debian_common/changelog",
154 "debian_amd64/control", 154 "debian_amd64/control",
155 "debian_amd64/google-o3d.install", 155 "debian_amd64/google-o3d.install",
156 "debian_amd64/links", 156 "debian_amd64/links",
157 "debian_amd64/postinst", 157 "debian_amd64/postinst",
158 "debian_amd64/prerm", 158 "debian_amd64/prerm",
159 "debian_amd64/rules" 159 "debian_amd64/rules"
160 ], 160 ],
161 [("libnpo3dautoplugin.so", 161 [("libnpo3dautoplugin.so",
162 '$ARTIFACTS_DIR/libnpo3dautoplugin.so'), 162 '$ARTIFACTS_DIR/libnpo3dautoplugin.so'),
163 ("libGLEW.so.1.5", '$ARTIFACTS_DIR/libGLEW.so.1.5'), 163 ("libGLEW.so.1.5", '$ARTIFACTS_DIR/libGLEW.so.1.5'),
164 ("libCg.so", '$ARTIFACTS_DIR/libCg.so'), 164 ("libCg.so", '$ARTIFACTS_DIR/libCg.so'),
165 ("libCgGL.so", '$ARTIFACTS_DIR/libCgGL.so') 165 ("libCgGL.so", '$ARTIFACTS_DIR/libCgGL.so')
166 ], 166 ],
167 output_dir='$ARTIFACTS_DIR', 167 output_dir='$ARTIFACTS_DIR',
168 force_version=env.get('O3D_PLUGIN_VERSION')) 168 force_version=env.get('O3D_PLUGIN_VERSION'))
169 169
170 # TODO(tschmelcher): Also build an i386 deb. 170 # Build i386 package.
171 BuildDebianPackage(["debian_common/changelog",
172 "debian_i386/control",
173 "debian_i386/google-o3d.install",
174 "debian_i386/links",
175 "debian_i386/rules"
176 ],
177 [("libnpo3dautoplugin.so",
178 '$ARTIFACTS_DIR/libnpo3dautoplugin.so')
179 ],
180 output_dir='$ARTIFACTS_DIR',
181 force_version=env.get('O3D_PLUGIN_VERSION'))
171 182
172 else: 183 else:
173 print('dpkg-buildpackage not found in PATH; Debian packages will not be ' 184 print('dpkg-buildpackage not found in PATH; Debian packages will not be '
174 'built.'); 185 'built.');
175 186
176 # TODO(tschmelcher): Also build an RPM and a tgz. 187 # TODO(tschmelcher): Also build an RPM and a tgz.
OLDNEW
« no previous file with comments | « no previous file | installer/linux/debian_amd64/changelog » ('j') | installer/linux/debian_i386/rules » ('J')

Powered by Google App Engine
This is Rietveld 408576698