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

Unified Diff: ports/xaos/build.sh

Issue 1491453003: Fix Xaos port (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ports/xaos/nacl-ui-driver/ppapi.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ports/xaos/build.sh
diff --git a/ports/xaos/build.sh b/ports/xaos/build.sh
index d37b782d9f1d2ab2f8699b32b07a5f0cdb32c817..4a258f8d390d27146fb674aebe7604a80750b058 100644
--- a/ports/xaos/build.sh
+++ b/ports/xaos/build.sh
@@ -5,6 +5,16 @@
EXECUTABLES=bin/xaos
NACL_CPPFLAGS+=" -D__NO_MATH_INLINES=1"
+# xaos does not work with a build dir which is separate from the src dir
+BUILD_DIR=${SRC_DIR}
+
+NACLPORTS_LDFLAGS+=" -Wl,--undefined=PPP_GetInterface \
+ -Wl,--undefined=PPP_ShutdownModule \
+ -Wl,--undefined=PPP_InitializeModule \
+ -Wl,--undefined=original_main"
+
+NACLPORTS_LIBS="-lppapi -lpthread -l${NACL_CXX_LIB} -lm"
+
PatchStep() {
DefaultPatchStep
echo "copy nacl driver"
@@ -12,28 +22,13 @@ PatchStep() {
}
ConfigureStep() {
- # xaos does not work with a build dir which is separate from the
- # src dir - so we copy src -> build
- ChangeDir ${SRC_DIR}
- Remove ${BUILD_DIR}
- local tmp=${SRC_DIR}.tmp
- Remove ${tmp}
- cp -r ${SRC_DIR} ${tmp}
- mv ${tmp} ${BUILD_DIR}
-
- ChangeDir ${BUILD_DIR}
+ # xaos takes care of defining NDEBUG itself
+ NACLPORTS_CFLAGS="${NACLPORTS_CFLAGS/-DNDEBUG/}"
+
echo "running autoconf"
LogExecute rm ./configure
LogExecute autoconf
- # xaos takes case of defining NDEBUG itself
- NACLPORTS_CFLAGS="${NACLPORTS_CFLAGS/-DNDEBUG/}"
- NACLPORTS_LDFLAGS+=" -Wl,--undefined=PPP_GetInterface \
- -Wl,--undefined=PPP_ShutdownModule \
- -Wl,--undefined=PPP_InitializeModule \
- -Wl,--undefined=original_main"
-
- export LIBS="-lppapi -lpthread -l${NACL_CXX_LIB} -lm"
SetupCrossEnvironment
LogExecute ./configure --with-png=no --with-long-double=no \
--host=nacl --with-x11-driver=no --with-sffe=no
@@ -44,11 +39,17 @@ BuildStep() {
DefaultBuildStep
}
-InstallStep(){
+InstallStep() {
+ return
+}
+
+PublishStep() {
MakeDir ${PUBLISH_DIR}
- install ${START_DIR}/xaos.html ${PUBLISH_DIR}
- install ${START_DIR}/xaos.nmf ${PUBLISH_DIR}
- # Not used yet
- install ${BUILD_DIR}/help/xaos.hlp ${PUBLISH_DIR}
- install ${BUILD_DIR}/bin/xaos ${PUBLISH_DIR}/xaos_${NACL_ARCH}${NACL_EXEEXT}
+ LogExecute install ${START_DIR}/xaos.html ${PUBLISH_DIR}
+ LogExecute install ${BUILD_DIR}/bin/xaos \
+ ${PUBLISH_DIR}/xaos_${NACL_ARCH}${NACL_EXEEXT}
+ LogExecute install ${BUILD_DIR}/help/xaos.hlp ${PUBLISH_DIR}
+ ChangeDir ${PUBLISH_DIR}
+ LogExecute python ${NACL_SDK_ROOT}/tools/create_nmf.py \
+ xaos*${NACL_EXEEXT} -s . -o xaos.nmf
}
« no previous file with comments | « no previous file | ports/xaos/nacl-ui-driver/ppapi.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698