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

Side by Side Diff: libraries/agg-2.5/nacl-agg-2.5.sh

Issue 11885025: Allow re-targeting of naclports install (Closed) Base URL: http://naclports.googlecode.com/svn/trunk/src
Patch Set: rebase Created 7 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
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 6
7 # nacl-agg-2.5.sh 7 # nacl-agg-2.5.sh
8 # 8 #
9 # usage: nacl-agg-2.5.sh 9 # usage: nacl-agg-2.5.sh
10 # 10 #
11 # this script downloads, patches, and builds agg for Native Client 11 # this script downloads, patches, and builds agg for Native Client
12 # 12 #
13 13
14 source pkg_info 14 source pkg_info
15 source ../../build_tools/common.sh 15 source ../../build_tools/common.sh
16 16
17 17
18 CustomBuildStep() { 18 CustomBuildStep() {
19 cd ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} 19 cd ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}
20 if [ ${NACL_ARCH} = "pnacl" ] ; then 20 local cflags="${NACLPORTS_CFLAGS}"
21 extra="" 21 if [ ${NACL_ARCH} != "pnacl" ] ; then
22 else 22 cflags="${cflags} -O3 -mfpmath=sse -msse -fomit-frame-pointer"
23 extra="-O3 -mfpmath=sse -msse -fomit-frame-pointer"
24 fi 23 fi
25 AGGCXXFLAGS="${extra}" make NACLCXX=${NACLCXX} NACLCC=${NACLCC} NACLAR=${NACLA R} 24 AGGCXXFLAGS="${cflags}" make NACLCXX=${NACLCXX} NACLCC=${NACLCC} NACLAR=${NACL AR}
26 } 25 }
27 26
28 27
29 CustomInstallStep() { 28 CustomInstallStep() {
30 # copy libs and headers manually 29 # copy libs and headers manually
31 ChangeDir ${NACL_SDK_USR_INCLUDE} 30 ChangeDir ${NACLPORTS_INCLUDE}
32 Remove ${PACKAGE_NAME} 31 Remove ${PACKAGE_NAME}
33 MakeDir ${PACKAGE_NAME} 32 MakeDir ${PACKAGE_NAME}
34 readonly THIS_PACKAGE_PATH=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} 33 readonly THIS_PACKAGE_PATH=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}
35 cp -R ${THIS_PACKAGE_PATH}/include/*.h ${PACKAGE_NAME}/ 34 cp -R ${THIS_PACKAGE_PATH}/include/*.h ${PACKAGE_NAME}/
36 cp ${THIS_PACKAGE_PATH}/font_freetype/*.h ${PACKAGE_NAME}/ 35 cp ${THIS_PACKAGE_PATH}/font_freetype/*.h ${PACKAGE_NAME}/
37 ChangeDir ${NACL_SDK_USR_LIB} 36 ChangeDir ${NACLPORTS_LIBDIR}
38 cp ${THIS_PACKAGE_PATH}/src/libagg.a . 37 cp ${THIS_PACKAGE_PATH}/src/libagg.a .
39 cp ${THIS_PACKAGE_PATH}/font_freetype/libaggfontfreetype.a . 38 cp ${THIS_PACKAGE_PATH}/font_freetype/libaggfontfreetype.a .
40 DefaultTouchStep 39 DefaultTouchStep
41 } 40 }
42 41
43 42
44 CustomPackageInstall() { 43 CustomPackageInstall() {
45 DefaultPreInstallStep 44 DefaultPreInstallStep
46 DefaultDownloadStep 45 DefaultDownloadStep
47 DefaultExtractStep 46 DefaultExtractStep
48 DefaultPatchStep 47 DefaultPatchStep
49 CustomBuildStep 48 CustomBuildStep
50 CustomInstallStep 49 CustomInstallStep
51 DefaultCleanUpStep 50 DefaultCleanUpStep
52 } 51 }
53 52
54 53
55 CustomPackageInstall 54 CustomPackageInstall
56 exit 0 55 exit 0
OLDNEW
« no previous file with comments | « libraries/SDL_mixer-1.2.11/nacl-SDL_mixer-1.2.11.sh ('k') | libraries/boost_1_47_0/nacl-boost_1_47_0.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698