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

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

Issue 1555913002: Build gtest from source rather than using SDK-provided version (Closed) Base URL: https://chromium.googlesource.com/webports.git@master
Patch Set: Created 4 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
OLDNEW
1 # Copyright (c) 2014 The Native Client Authors. All rights reserved. 1 # Copyright (c) 2014 The Native Client Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 EnableCliMain 5 EnableCliMain
6 NACLPORTS_CPPFLAGS+=" -Wall -Werror -Dpipe=nacl_spawn_pipe" 6 NACLPORTS_CPPFLAGS+=" -Wall -Werror -Dpipe=nacl_spawn_pipe"
7 NACLPORTS_CPPFLAGS+=" -isystem ${GTEST_SRC}/include"
7 8
8 EXECUTABLES="tests/devenv_small_test_${NACL_ARCH}${NACL_EXEEXT} \ 9 EXECUTABLES="tests/devenv_small_test_${NACL_ARCH}${NACL_EXEEXT} \
9 jseval/jseval_${NACL_ARCH}${NACL_EXEEXT}" 10 jseval/jseval_${NACL_ARCH}${NACL_EXEEXT}"
10 11
11 STORAGE_URL=https://naclports.storage.googleapis.com/builds 12 STORAGE_URL=https://naclports.storage.googleapis.com/builds
12 SDK_VERSION=pepper_48 13 SDK_VERSION=pepper_48
13 BUILT_REVISION=trunk-703-gdb4edd8 14 BUILT_REVISION=trunk-703-gdb4edd8
14 DEFAULT_SOURCE=${STORAGE_URL}/${SDK_VERSION}/${BUILT_REVISION}/publish 15 DEFAULT_SOURCE=${STORAGE_URL}/${SDK_VERSION}/${BUILT_REVISION}/publish
15 LOCAL_SOURCE=http://localhost:5103 16 LOCAL_SOURCE=http://localhost:5103
16 17
17 BuildStep() { 18 BuildStep() {
18 SetupCrossEnvironment 19 SetupCrossEnvironment
19 20
20 # Build jseval module. 21 # Build jseval module.
21 MakeDir ${BUILD_DIR}/jseval 22 MakeDir ${BUILD_DIR}/jseval
22 LogExecute ${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} \ 23 LogExecute ${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} \
23 ${START_DIR}/jseval.c \ 24 ${START_DIR}/jseval.c \
24 -o ${BUILD_DIR}/jseval/jseval_${NACL_ARCH}${NACL_EXEEXT} \ 25 -o ${BUILD_DIR}/jseval/jseval_${NACL_ARCH}${NACL_EXEEXT} \
25 ${LIBS} 26 ${LIBS}
26 27
27 # Build test module. 28 # Build test module.
28 MakeDir ${BUILD_DIR}/tests 29 LogExecute ${CXX} ${CPPFLAGS} ${CXXFLAGS} -o devenv_small_test.o \
binji 2016/01/04 19:12:54 what directory does this write to? It used to pref
Sam Clegg 2016/01/05 12:41:14 The CWD in the BuildStep is BUILD_DIR so it was re
29 LogExecute ${CXX} ${CPPFLAGS} ${CXXFLAGS} ${LDFLAGS} \ 30 -c ${START_DIR}/tests/devenv_small_test.cc
30 ${START_DIR}/tests/devenv_small_test.cc \ 31 LogExecute ${CXX} ${CPPFLAGS} ${CXXFLAGS} -o gtest-all.o \
31 -o ${BUILD_DIR}/tests/devenv_small_test_${NACL_ARCH}${NACL_EXEEXT} \ 32 -c ${GTEST_SRC}/src/gtest-all.cc -I${GTEST_SRC}
32 -lgtest ${LIBS} 33
34 LogExecute ${CXX} ${LDFLAGS} devenv_small_test.o gtest-all.o ${LIBS} \
35 -o devenv_small_test_${NACL_ARCH}${NACL_EXEEXT}
36
37 if [[ ${NACL_ARCH} == pnacl ]]; then
38 LogExecute ${PNACLFINALIZE} devenv_small_test_${NACL_ARCH}${NACL_EXEEXT}
39 fi
33 } 40 }
34 41
35 InstallStep() { 42 InstallStep() {
36 return 43 return
37 } 44 }
38 45
39 # 46 #
40 # $1: Name name of the repo 47 # $1: Name name of the repo
41 # $2: Name of directory in which to create the conf file. 48 # $2: Name of directory in which to create the conf file.
42 # $3: The http address of repo. 49 # $3: The http address of repo.
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 ChangeDir ${PUBLISH_DIR} 162 ChangeDir ${PUBLISH_DIR}
156 CreateWebStoreZip devenv_app_upload.zip devenv_app_upload 163 CreateWebStoreZip devenv_app_upload.zip devenv_app_upload
157 164
158 # Copy the files for DevEnvWidget. 165 # Copy the files for DevEnvWidget.
159 local WIDGET_DIR=${PUBLISH_DIR}/devenvwidget 166 local WIDGET_DIR=${PUBLISH_DIR}/devenvwidget
160 MakeDir ${WIDGET_DIR} 167 MakeDir ${WIDGET_DIR}
161 LogExecute cp -r ${START_DIR}/devenvwidget/* ${WIDGET_DIR} 168 LogExecute cp -r ${START_DIR}/devenvwidget/* ${WIDGET_DIR}
162 169
163 # Install tests. 170 # Install tests.
164 MakeDir ${PUBLISH_DIR}/tests 171 MakeDir ${PUBLISH_DIR}/tests
165 LogExecute cp -r ${BUILD_DIR}/tests/* ${PUBLISH_DIR}/tests 172 LogExecute cp -r ${BUILD_DIR}/tests/*${NACL_EXEEXT} ${PUBLISH_DIR}/tests
166 cd ${PUBLISH_DIR}/tests 173 cd ${PUBLISH_DIR}/tests
167 if [[ ${NACL_ARCH} == pnacl ]]; then
168 LogExecute ${PNACLFINALIZE} devenv_small_test_${NACL_ARCH}${NACL_EXEEXT}
169 fi
170 LogExecute python ${NACL_SDK_ROOT}/tools/create_nmf.py \ 174 LogExecute python ${NACL_SDK_ROOT}/tools/create_nmf.py \
171 devenv_small_test_${NACL_ARCH}${NACL_EXEEXT} \ 175 devenv_small_test_${NACL_ARCH}${NACL_EXEEXT} \
172 -s . \ 176 -s . \
173 -o devenv_small_test.nmf 177 -o devenv_small_test.nmf
174 LogExecute mv devenv_small_test_${NACL_ARCH}${NACL_EXEEXT} \ 178 LogExecute mv devenv_small_test_${NACL_ARCH}${NACL_EXEEXT} \
175 devenv_small_test_${NACL_ARCH} 179 devenv_small_test_${NACL_ARCH}
176 180
177 Remove devenv_small_test.zip 181 Remove devenv_small_test.zip
178 LogExecute zip -r devenv_small_test.zip * 182 LogExecute zip -r devenv_small_test.zip *
179 } 183 }
(...skipping 16 matching lines...) Expand all
196 fi 200 fi
197 # Run large and io2014 tests only on the buildbots (against pinned revs). 201 # Run large and io2014 tests only on the buildbots (against pinned revs).
198 if [[ -n ${BUILDBOT_BUILDERNAME:-} ]]; then 202 if [[ -n ${BUILDBOT_BUILDERNAME:-} ]]; then
199 LogExecute python ${START_DIR}/../devenv/devenv_large_test.py \ 203 LogExecute python ${START_DIR}/../devenv/devenv_large_test.py \
200 -x -v -a ${arch} 204 -x -v -a ${arch}
201 #LogExecute python ${START_DIR}/../devenv/io2014_test.py \ 205 #LogExecute python ${START_DIR}/../devenv/io2014_test.py \
202 #-x -v -a ${arch} 206 #-x -v -a ${arch}
203 fi 207 fi
204 done 208 done
205 } 209 }
OLDNEW
« no previous file with comments | « ports/corelibs/build.sh ('k') | ports/devenv/pkg_info » ('j') | ports/gtest/build.sh » ('J')

Powered by Google App Engine
This is Rietveld 408576698