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

Side by Side Diff: ports/agg/build.sh

Issue 132343007: Add top level build script for building packages. (Closed) Base URL: https://naclports.googlecode.com/svn/trunk/src
Patch Set: Created 6 years, 11 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
« no previous file with comments | « ports/SDL_ttf/build.sh ('k') | ports/apr-util/build.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 source pkg_info
7 source ../../build_tools/common.sh
8 6
9 7
10 BuildStep() { 8 BuildStep() {
11 cd ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} 9 cd ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}
12 local cflags="${NACLPORTS_CFLAGS}" 10 local cflags="${NACLPORTS_CFLAGS}"
13 if [ ${NACL_ARCH} != "pnacl" ]; then 11 if [ ${NACL_ARCH} != "pnacl" ]; then
14 cflags="${cflags} -O3 -fomit-frame-pointer" 12 cflags="${cflags} -O3 -fomit-frame-pointer"
15 fi 13 fi
16 if [ ${NACL_ARCH} = "i686" -o ${NACL_ARCH} = "x86_64" ]; then 14 if [ ${NACL_ARCH} = "i686" -o ${NACL_ARCH} = "x86_64" ]; then
17 cflags="${cflags} -mfpmath=sse -msse" 15 cflags="${cflags} -mfpmath=sse -msse"
18 fi 16 fi
19 MAKEFLAGS="-j${OS_JOBS}" AGGCXXFLAGS="${cflags}" LogExecute make -j${OS_JOBS} 17 MAKEFLAGS="-j${OS_JOBS}" AGGCXXFLAGS="${cflags}" LogExecute make -j${OS_JOBS}
20 } 18 }
21 19
22 20
23 InstallStep() { 21 InstallStep() {
24 # copy libs and headers manually 22 # copy libs and headers manually
25 ChangeDir ${NACLPORTS_INCLUDE} 23 ChangeDir ${NACLPORTS_INCLUDE}
26 Remove ${PACKAGE_NAME} 24 Remove ${PACKAGE_NAME}
27 MakeDir ${PACKAGE_NAME} 25 MakeDir ${PACKAGE_NAME}
28 readonly THIS_PACKAGE_PATH=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} 26 readonly THIS_PACKAGE_PATH=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}
29 cp -R ${THIS_PACKAGE_PATH}/include/*.h ${PACKAGE_NAME}/ 27 cp -R ${THIS_PACKAGE_PATH}/include/*.h ${PACKAGE_NAME}/
30 cp ${THIS_PACKAGE_PATH}/font_freetype/*.h ${PACKAGE_NAME}/ 28 cp ${THIS_PACKAGE_PATH}/font_freetype/*.h ${PACKAGE_NAME}/
31 ChangeDir ${NACLPORTS_LIBDIR} 29 ChangeDir ${NACLPORTS_LIBDIR}
32 cp ${THIS_PACKAGE_PATH}/src/libagg.a . 30 cp ${THIS_PACKAGE_PATH}/src/libagg.a .
33 cp ${THIS_PACKAGE_PATH}/font_freetype/libaggfontfreetype.a . 31 cp ${THIS_PACKAGE_PATH}/font_freetype/libaggfontfreetype.a .
34 } 32 }
35
36
37 PackageInstall
38 exit 0
OLDNEW
« no previous file with comments | « ports/SDL_ttf/build.sh ('k') | ports/apr-util/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698