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

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

Issue 1417223003: Switch from using 'nacl_main' to 'main' entry point (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 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
11 EnableCliMain
11 EnableGlibcCompat 12 EnableGlibcCompat
12 13
13 EXTRA_CONFIGURE_ARGS+=" --disable-glx" 14 EXTRA_CONFIGURE_ARGS+=" --disable-glx"
14 EXTRA_CONFIGURE_ARGS+=" --enable-xfree86-utils=no" 15 EXTRA_CONFIGURE_ARGS+=" --enable-xfree86-utils=no"
15 EXTRA_CONFIGURE_ARGS+=" --enable-pciaccess=no" 16 EXTRA_CONFIGURE_ARGS+=" --enable-pciaccess=no"
16 EXTRA_CONFIGURE_ARGS+=" --enable-kdrive" 17 EXTRA_CONFIGURE_ARGS+=" --enable-kdrive"
17 EXTRA_CONFIGURE_ARGS+=" --enable-local-transport=no" 18 EXTRA_CONFIGURE_ARGS+=" --enable-local-transport=no"
18 EXTRA_CONFIGURE_ARGS+=" --enable-unix-transport=no" 19 EXTRA_CONFIGURE_ARGS+=" --enable-unix-transport=no"
19 EXTRA_CONFIGURE_ARGS+=" --enable-static=yes" 20 EXTRA_CONFIGURE_ARGS+=" --enable-static=yes"
20 EXTRA_CONFIGURE_ARGS+=" --enable-shared=no" 21 EXTRA_CONFIGURE_ARGS+=" --enable-shared=no"
21 EXTRA_CONFIGURE_ARGS+=" --enable-unit-tests=no" 22 EXTRA_CONFIGURE_ARGS+=" --enable-unit-tests=no"
22 EXTRA_CONFIGURE_ARGS+=" --enable-ipv6=no" 23 EXTRA_CONFIGURE_ARGS+=" --enable-ipv6=no"
23 EXTRA_CONFIGURE_ARGS+=" --datarootdir=/share" 24 EXTRA_CONFIGURE_ARGS+=" --datarootdir=/share"
24 EXTRA_CONFIGURE_ARGS+=" --with-fontrootdir=/share/fonts/X11" 25 EXTRA_CONFIGURE_ARGS+=" --with-fontrootdir=/share/fonts/X11"
25 EXTRA_CONFIGURE_ARGS+=" --with-xkb-bin-directory=" 26 EXTRA_CONFIGURE_ARGS+=" --with-xkb-bin-directory="
26 27
27 if [ "${NACL_LIBC}" = "newlib" ]; then 28 if [ "${NACL_LIBC}" = "newlib" ]; then
28 EXTRA_CONFIGURE_ARGS+=" --enable-xvfb=no" 29 EXTRA_CONFIGURE_ARGS+=" --enable-xvfb=no"
29 EXTRA_CONFIGURE_ARGS+=" --enable-xorg=no" 30 EXTRA_CONFIGURE_ARGS+=" --enable-xorg=no"
30 fi 31 fi
31 32
32 NACLPORTS_CPPFLAGS+=" -Dmain=SDL_main" 33 NACLPORTS_CPPFLAGS+=" -Dmain=SDL_main"
33 export LIBS="\ 34 NACLPORTS_LDFLAGS+=" -Wl,--undefined=nacl_startup_untar"
34 ${NACL_CLI_MAIN_LIB} \ 35 NACLPORTS_LDFLAGS+=" -Wl,--undefined=SDL_main"
35 -Wl,--undefined=SDL_main \ 36 NACLPORTS_LIBS+=" -lSDLmain -lSDL -lRegal -lglslopt -lppapi_gles2 -lm"
36 -Wl,--undefined=nacl_main \
37 -Wl,--undefined=nacl_startup_untar \
38 -lSDLmain -lSDL -lRegal -lglslopt -lppapi_gles2 -lm \
39 -l${NACL_CXX_LIB}"
40 37
41 PatchStep() { 38 PatchStep() {
42 DefaultPatchStep 39 DefaultPatchStep
43 MakeDir ${SRC_DIR}/hw/kdrive/sdl 40 MakeDir ${SRC_DIR}/hw/kdrive/sdl
44 LogExecute cp ${START_DIR}/sdl.c \ 41 LogExecute cp ${START_DIR}/sdl.c \
45 ${START_DIR}/Makefile.am \ 42 ${START_DIR}/Makefile.am \
46 ${SRC_DIR}/hw/kdrive/sdl/ 43 ${SRC_DIR}/hw/kdrive/sdl/
47 } 44 }
48 45
49 ConfigureStep() { 46 ConfigureStep() {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 LogExecute tar cvf ${ASSEMBLY_DIR}/xorg-xkb.tar share/X11/xkb 98 LogExecute tar cvf ${ASSEMBLY_DIR}/xorg-xkb.tar share/X11/xkb
102 LogExecute shasum ${ASSEMBLY_DIR}/xorg-xkb.tar > \ 99 LogExecute shasum ${ASSEMBLY_DIR}/xorg-xkb.tar > \
103 ${ASSEMBLY_DIR}/xorg-xkb.tar.hash 100 ${ASSEMBLY_DIR}/xorg-xkb.tar.hash
104 local XFONTS_DIR=${NACL_PACKAGES_PUBLISH}/xfonts/${TOOLCHAIN} 101 local XFONTS_DIR=${NACL_PACKAGES_PUBLISH}/xfonts/${TOOLCHAIN}
105 LogExecute cp ${XFONTS_DIR}/xorg-fonts.tar ${ASSEMBLY_DIR}/ 102 LogExecute cp ${XFONTS_DIR}/xorg-fonts.tar ${ASSEMBLY_DIR}/
106 LogExecute cp ${XFONTS_DIR}/xorg-fonts.tar.hash ${ASSEMBLY_DIR}/ 103 LogExecute cp ${XFONTS_DIR}/xorg-fonts.tar.hash ${ASSEMBLY_DIR}/
107 104
108 ChangeDir ${PUBLISH_DIR} 105 ChangeDir ${PUBLISH_DIR}
109 LogExecute zip -r xorg-server.zip xorg-server 106 LogExecute zip -r xorg-server.zip xorg-server
110 } 107 }
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