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

Side by Side Diff: third_party/libevent/libevent.xcodeproj/libevent_prebuild.sh

Issue 28305: GYP it, GYP it good (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: Created 11 years, 9 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
(Empty)
1 #!/bin/sh
2
3 # Copyright (c) 2008 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
7 set -ex
8
9 GENERATED_DIR="${CONFIGURATION_TEMP_DIR}/generated"
10
11 # Generate config.h the same way that "sh configure" would
12 mkdir -p "${GENERATED_DIR}"
13
14 CONFIG_H_IN="$1"
15 if test "X${CONFIG_H_IN}" = "X"; then
16 CONFIG_H_IN="config.h.in"
17 fi
18
19 CONFIG_H="${GENERATED_DIR}/config.h"
20 sed -e s/'^#undef DNS_USE_GETTIMEOFDAY_FOR_ID$'/'#define DNS_USE_GETTIMEOFDAY_FO R_ID 1'/ \
21 -e s/'^#undef HAVE_DLFCN_H$'/'#define HAVE_DLFCN_H 1'/ \
22 -e s/'^#undef HAVE_FCNTL$'/'#define HAVE_FCNTL 1'/ \
23 -e s/'^#undef HAVE_FCNTL_H$'/'#define HAVE_FCNTL_H 1'/ \
24 -e s/'^#undef HAVE_GETADDRINFO$'/'#define HAVE_GETADDRINFO 1'/ \
25 -e s/'^#undef HAVE_GETNAMEINFO$'/'#define HAVE_GETNAMEINFO 1'/ \
26 -e s/'^#undef HAVE_GETTIMEOFDAY$'/'#define HAVE_GETTIMEOFDAY 1'/ \
27 -e s/'^#undef HAVE_INET_NTOP$'/'#define HAVE_INET_NTOP 1'/ \
28 -e s/'^#undef HAVE_INTTYPES_H$'/'#define HAVE_INTTYPES_H 1'/ \
29 -e s/'^#undef HAVE_KQUEUE$'/'#define HAVE_KQUEUE 1'/ \
30 -e s/'^#undef HAVE_LIBRESOLV$'/'#define HAVE_LIBRESOLV 1'/ \
31 -e s/'^#undef HAVE_MEMORY_H$'/'#define HAVE_MEMORY_H 1'/ \
32 -e s/'^#undef HAVE_POLL$'/'#define HAVE_POLL 1'/ \
33 -e s/'^#undef HAVE_POLL_H$'/'#define HAVE_POLL_H 1'/ \
34 -e s/'^#undef HAVE_SELECT$'/'#define HAVE_SELECT 1'/ \
35 -e s/'^#undef HAVE_SETFD$'/'#define HAVE_SETFD 1'/ \
36 -e s/'^#undef HAVE_SIGACTION$'/'#define HAVE_SIGACTION 1'/ \
37 -e s/'^#undef HAVE_SIGNAL$'/'#define HAVE_SIGNAL 1'/ \
38 -e s/'^#undef HAVE_SIGNAL_H$'/'#define HAVE_SIGNAL_H 1'/ \
39 -e s/'^#undef HAVE_STDARG_H$'/'#define HAVE_STDARG_H 1'/ \
40 -e s/'^#undef HAVE_STDINT_H$'/'#define HAVE_STDINT_H 1'/ \
41 -e s/'^#undef HAVE_STDLIB_H$'/'#define HAVE_STDLIB_H 1'/ \
42 -e s/'^#undef HAVE_STRINGS_H$'/'#define HAVE_STRINGS_H 1'/ \
43 -e s/'^#undef HAVE_STRING_H$'/'#define HAVE_STRING_H 1'/ \
44 -e s/'^#undef HAVE_STRLCPY$'/'#define HAVE_STRLCPY 1'/ \
45 -e s/'^#undef HAVE_STRSEP$'/'#define HAVE_STRSEP 1'/ \
46 -e s/'^#undef HAVE_STRTOK_R$'/'#define HAVE_STRTOK_R 1'/ \
47 -e s/'^#undef HAVE_STRTOLL$'/'#define HAVE_STRTOLL 1'/ \
48 -e s/'^#undef HAVE_STRUCT_IN6_ADDR$'/'#define HAVE_STRUCT_IN6_ADDR 1'/ \
49 -e s/'^#undef HAVE_SYS_EVENT_H$'/'#define HAVE_SYS_EVENT_H 1'/ \
50 -e s/'^#undef HAVE_SYS_IOCTL_H$'/'#define HAVE_SYS_IOCTL_H 1'/ \
51 -e s/'^#undef HAVE_SYS_PARAM_H$'/'#define HAVE_SYS_PARAM_H 1'/ \
52 -e s/'^#undef HAVE_SYS_QUEUE_H$'/'#define HAVE_SYS_QUEUE_H 1'/ \
53 -e s/'^#undef HAVE_SYS_SELECT_H$'/'#define HAVE_SYS_SELECT_H 1'/ \
54 -e s/'^#undef HAVE_SYS_SOCKET_H$'/'#define HAVE_SYS_SOCKET_H 1'/ \
55 -e s/'^#undef HAVE_SYS_STAT_H$'/'#define HAVE_SYS_STAT_H 1'/ \
56 -e s/'^#undef HAVE_SYS_TIME_H$'/'#define HAVE_SYS_TIME_H 1'/ \
57 -e s/'^#undef HAVE_SYS_TYPES_H$'/'#define HAVE_SYS_TYPES_H 1'/ \
58 -e s/'^#undef HAVE_TAILQFOREACH$'/'#define HAVE_TAILQFOREACH 1'/ \
59 -e s/'^#undef HAVE_TIMERADD$'/'#define HAVE_TIMERADD 1'/ \
60 -e s/'^#undef HAVE_TIMERCLEAR$'/'#define HAVE_TIMERCLEAR 1'/ \
61 -e s/'^#undef HAVE_TIMERCMP$'/'#define HAVE_TIMERCMP 1'/ \
62 -e s/'^#undef HAVE_TIMERISSET$'/'#define HAVE_TIMERISSET 1'/ \
63 -e s/'^#undef HAVE_UINT16_T$'/'#define HAVE_UINT16_T 1'/ \
64 -e s/'^#undef HAVE_UINT32_T$'/'#define HAVE_UINT32_T 1'/ \
65 -e s/'^#undef HAVE_UINT64_T$'/'#define HAVE_UINT64_T 1'/ \
66 -e s/'^#undef HAVE_UINT8_T$'/'#define HAVE_UINT8_T 1'/ \
67 -e s/'^#undef HAVE_UNISTD_H$'/'#define HAVE_UNISTD_H 1'/ \
68 -e s/'^#undef HAVE_VASPRINTF$'/'#define HAVE_VASPRINTF 1'/ \
69 -e s/'^#undef HAVE_WORKING_KQUEUE$'/'#define HAVE_WORKING_KQUEUE 1'/ \
70 -e s/'^#undef PACKAGE$'/'#define PACKAGE "libevent"'/ \
71 -e s/'^#undef PACKAGE_BUGREPORT$'/'#define PACKAGE_BUGREPORT ""'/ \
72 -e s/'^#undef PACKAGE_NAME$'/'#define PACKAGE_NAME ""'/ \
73 -e s/'^#undef PACKAGE_STRING$'/'#define PACKAGE_STRING ""'/ \
74 -e s/'^#undef PACKAGE_TARNAME$'/'#define PACKAGE_TARNAME ""'/ \
75 -e s/'^#undef PACKAGE_VERSION$'/'#define PACKAGE_VERSION ""'/ \
76 -e s/'^#undef SIZEOF_INT$'/'#define SIZEOF_INT 4'/ \
77 -e s/'^#undef SIZEOF_LONG$'/'#define SIZEOF_LONG 4'/ \
78 -e s/'^#undef SIZEOF_LONG_LONG$'/'#define SIZEOF_LONG_LONG 8'/ \
79 -e s/'^#undef SIZEOF_SHORT$'/'#define SIZEOF_SHORT 2'/ \
80 -e s/'^#undef STDC_HEADERS$'/'#define STDC_HEADERS 1'/ \
81 -e s/'^#undef TIME_WITH_SYS_TIME$'/'#define TIME_WITH_SYS_TIME 1'/ \
82 -e s/'^#undef VERSION$'/'#define VERSION "1.4.7-stable"'/ \
83 -e s@'^\(#undef .*\)$'@'/* \1 */'@ \
84 < "${CONFIG_H_IN}" \
85 > "${CONFIG_H}.new"
86
87 if ! diff -q "${CONFIG_H}.new" "${CONFIG_H}" >& /dev/null ; then
88 mv "${CONFIG_H}.new" "${CONFIG_H}"
89 else
90 rm "${CONFIG_H}.new"
91 fi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698