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

Side by Side Diff: ports/xorg-server/build.sh

Issue 907563002: Simplify cli_main (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « ports/xkbcomp/build.sh ('k') | no next file » | 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) 2014 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2014 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 NACLPORTS_CPPFLAGS+=" -I${NACLPORTS_INCLUDE}/pixman-1" 6 NACLPORTS_CPPFLAGS+=" -I${NACLPORTS_INCLUDE}/pixman-1"
7 NACLPORTS_CPPFLAGS+=" -DFASYNC=O_NONBLOCK -DFNDELAY=O_NONBLOCK" 7 NACLPORTS_CPPFLAGS+=" -DFASYNC=O_NONBLOCK -DFNDELAY=O_NONBLOCK"
8 8
9 EXECUTABLES=hw/kdrive/sdl/Xsdl${NACL_EXEEXT} 9 EXECUTABLES=hw/kdrive/sdl/Xsdl${NACL_EXEEXT}
10 10
(...skipping 16 matching lines...) Expand all
27 27
28 if [ "${NACL_LIBC}" = "newlib" ]; then 28 if [ "${NACL_LIBC}" = "newlib" ]; then
29 EXTRA_CONFIGURE_ARGS+=" --enable-xvfb=no" 29 EXTRA_CONFIGURE_ARGS+=" --enable-xvfb=no"
30 EXTRA_CONFIGURE_ARGS+=" --enable-xorg=no" 30 EXTRA_CONFIGURE_ARGS+=" --enable-xorg=no"
31 fi 31 fi
32 32
33 NACLPORTS_CFLAGS+=" -Dmain=SDL_main" 33 NACLPORTS_CFLAGS+=" -Dmain=SDL_main"
34 export LIBS+="\ 34 export LIBS+="\
35 -Wl,--undefined=nacl_main \ 35 -Wl,--undefined=nacl_main \
36 -Wl,--undefined=SDL_main \ 36 -Wl,--undefined=SDL_main \
37 -lnacl_spawn \
38 -lSDLmain -lSDL \ 37 -lSDLmain -lSDL \
39 ${NACL_CLI_MAIN_LIB} \ 38 ${NACL_CLI_MAIN_LIB} \
40 -lppapi_simple -ltar -lnacl_io -lRegal -lglslopt \ 39 -lppapi_simple -ltar -lnacl_io -lRegal -lglslopt \
41 -lppapi -lppapi_cpp -lppapi_gles2 -lm \ 40 -lppapi -lppapi_cpp -lppapi_gles2 -lm \
42 -l${NACL_CPP_LIB}" 41 -l${NACL_CPP_LIB}"
43 42
44 if [ "${NACL_LIBC}" = "newlib" ]; then 43 if [ "${NACL_LIBC}" = "newlib" ]; then
45 NACLPORTS_CFLAGS+=" -I${NACLPORTS_INCLUDE}/glibc-compat" 44 NACLPORTS_CFLAGS+=" -I${NACLPORTS_INCLUDE}/glibc-compat"
46 export LIBS+=" -lglibc-compat" 45 export LIBS+=" -lglibc-compat"
47 fi 46 fi
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 Xsdl.js; do 104 Xsdl.js; do
106 LogExecute cp ${START_DIR}/${f} . 105 LogExecute cp ${START_DIR}/${f} .
107 done 106 done
108 107
109 ChangeDir ${NACL_PREFIX} 108 ChangeDir ${NACL_PREFIX}
110 LogExecute tar cvf ${ASSEMBLY_DIR}/xorg-xkb.tar share/X11/xkb 109 LogExecute tar cvf ${ASSEMBLY_DIR}/xorg-xkb.tar share/X11/xkb
111 110
112 ChangeDir ${PUBLISH_DIR} 111 ChangeDir ${PUBLISH_DIR}
113 LogExecute zip -r xorg-server.zip xorg-server 112 LogExecute zip -r xorg-server.zip xorg-server
114 } 113 }
OLDNEW
« no previous file with comments | « ports/xkbcomp/build.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698