OLD | NEW |
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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 # Build amd64 package. | 152 # Build amd64 package. |
153 BuildDebianPackage(["debian_common/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_common/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 # Build i386 package. | 170 # Build i386 package. |
171 BuildDebianPackage(["debian_common/changelog", | 171 BuildDebianPackage(["debian_common/changelog", |
172 "debian_i386/control", | 172 "debian_i386/control", |
173 "debian_i386/google-o3d.install", | 173 "debian_i386/google-o3d.install", |
174 "debian_i386/links", | 174 "debian_common/links", |
175 "debian_i386/rules" | 175 "debian_i386/rules" |
176 ], | 176 ], |
177 [("libnpo3dautoplugin.so", | 177 [("libnpo3dautoplugin.so", |
178 '$ARTIFACTS_DIR/libnpo3dautoplugin.so') | 178 '$ARTIFACTS_DIR/libnpo3dautoplugin.so') |
179 ], | 179 ], |
180 output_dir='$ARTIFACTS_DIR', | 180 output_dir='$ARTIFACTS_DIR', |
181 force_version=env.get('O3D_PLUGIN_VERSION')) | 181 force_version=env.get('O3D_PLUGIN_VERSION')) |
182 | 182 |
183 else: | 183 else: |
184 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 ' |
185 'built.'); | 185 'built.'); |
186 | 186 |
187 # TODO(tschmelcher): Also build an RPM and a tgz. | 187 # TODO(tschmelcher): Also build an RPM and a tgz. |
OLD | NEW |