Changeset 2b0b78882c9015f35a69b70dfdb9f04597002182
- Timestamp:
- 10/04/02 15:13:54
(6 years ago)
- Author:
- Sam Hocevar <sam@videolan.org>
- git-committer:
- Sam Hocevar <sam@videolan.org> 1033737234 +0000
- git-parent:
[80b15699ead10f9b1aa4687cd22c1bdcc866eb6d]
- git-author:
- Sam Hocevar <sam@videolan.org> 1033737234 +0000
- Message:
- ./bootstrap: we use the proper linker for plugin compilation.
- ./modules/misc/testsuite/*: moved the null module into three test modules
that are only built when --enable-testsuite is activated. This directory
can be a good place for compilation tests or performance benchmarks.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r537cf3a |
r2b0b788 |
|
| 2 | 2 | |
|---|
| 3 | 3 | ## bootstrap file for vlc, the VideoLAN Client |
|---|
| 4 | | ## $Id: bootstrap,v 1.17 2002/10/03 08:44:11 sam Exp $ |
|---|
| | 4 | ## $Id: bootstrap,v 1.18 2002/10/04 13:13:54 sam Exp $ |
|---|
| 5 | 5 | ## |
|---|
| 6 | 6 | ## Authors: Samuel Hocevar <sam@zoy.org> |
|---|
| … | … | |
| 74 | 74 | sed -n -e 's/^ *SOURCES_\([^ ]*\).*/\1/p' < ${mf} | while read mod |
|---|
| 75 | 75 | do |
|---|
| | 76 | LINKER="LINK" |
|---|
| 76 | 77 | if echo "$ALL_FLAGS" | grep '^CPPFLAGS_'${mod}'=$' >/dev/null 2>&1; then |
|---|
| 77 | 78 | echo "AC_SUBST(CPPFLAGS_${mod})" >> configure.ac; fi |
|---|
| … | … | |
| 79 | 80 | echo "AC_SUBST(CFLAGS_${mod})" >> configure.ac; fi |
|---|
| 80 | 81 | if echo "$ALL_FLAGS" | grep '^CXXFLAGS_'${mod}'=$' >/dev/null 2>&1; then |
|---|
| | 82 | LINKER="CXXLINK" |
|---|
| 81 | 83 | echo "AC_SUBST(CXXFLAGS_${mod})" >> configure.ac; fi |
|---|
| 82 | 84 | if echo "$ALL_FLAGS" | grep '^OBJCFLAGS_'${mod}'=$' >/dev/null 2>&1; then |
|---|
| | 85 | LINKER="OBJCLINK" |
|---|
| 83 | 86 | echo "AC_SUBST(OBJCFLAGS_${mod})" >> configure.ac; fi |
|---|
| 84 | 87 | if echo "$ALL_FLAGS" | grep '^LDFLAGS_'${mod}'=$' >/dev/null 2>&1; then |
|---|
| … | … | |
| 151 | 154 | ${PRIVATE}noinst_LIBRARIES += \$(L_${mod}_p) |
|---|
| 152 | 155 | ${PRIVATE}${dir}/lib${mod}_plugin\$(LIBEXT): \$(${sym}_lib${mod}_plugin_a_OBJECTS) |
|---|
| 153 | | ${PRIVATE} \$(CC) \$^ -o \$@ -shared \$(LDFLAGS) \$(LDFLAGS_plugins) \$(LDFLAGS_${mod}) |
|---|
| | 156 | ${PRIVATE} \$(${LINKER}) \$^ -o \$@ -shared \$(LDFLAGS_plugins) \$(LDFLAGS_${mod}) |
|---|
| 154 | 157 | |
|---|
| 155 | 158 | |
|---|
| r80b1569 |
r2b0b788 |
|
| 508 | 508 | dnl default modules |
|---|
| 509 | 509 | dnl |
|---|
| 510 | | PLUGINS="${PLUGINS} dummy null" |
|---|
| 511 | | PLUGINS="${PLUGINS} rc logger access_file memcpy" |
|---|
| | 510 | PLUGINS="${PLUGINS} dummy rc logger access_file memcpy" |
|---|
| 512 | 511 | PLUGINS="${PLUGINS} es audio mpeg_system ps ts" |
|---|
| 513 | 512 | PLUGINS="${PLUGINS} idct idctclassic motion mpeg_video spudec mpeg_audio" |
|---|
| … | … | |
| 2093 | 2092 | |
|---|
| 2094 | 2093 | dnl |
|---|
| | 2094 | dnl test plugins |
|---|
| | 2095 | dnl |
|---|
| | 2096 | AC_ARG_ENABLE(testsuite, |
|---|
| | 2097 | [ --enable-testsuite build test modules (default disabled)]) |
|---|
| | 2098 | if test "x${enable_testsuite}" = "xyes" |
|---|
| | 2099 | then |
|---|
| | 2100 | TESTS="test1 test2 test3" |
|---|
| | 2101 | dnl we define those so that bootstrap sets the right linker |
|---|
| | 2102 | CXXFLAGS_test2="${CXXFLAGS_test2}" |
|---|
| | 2103 | OBJCFLAGS_test3="${OBJCFLAGS_test3}" |
|---|
| | 2104 | dnl this one is needed until automake knows what to do |
|---|
| | 2105 | LDFLAGS_test3="${LDFLAGS_test3} -lobjc" |
|---|
| | 2106 | PLUGINS="${PLUGINS} ${TESTS}" |
|---|
| | 2107 | BUILTINS="${BUILTINS} ${TESTS}" |
|---|
| | 2108 | fi |
|---|
| | 2109 | |
|---|
| | 2110 | dnl |
|---|
| 2095 | 2111 | dnl gtk_main plugin |
|---|
| 2096 | 2112 | dnl |
|---|
| … | … | |
| 2098 | 2114 | then |
|---|
| 2099 | 2115 | PLUGINS="${PLUGINS} gtk_main" |
|---|
| 2100 | | CFLAGS_gtk = "${CFLAGS_gtk} -DNEED_GTK_MAIN" |
|---|
| | 2116 | CFLAGS_gtk="${CFLAGS_gtk} -DNEED_GTK_MAIN" |
|---|
| 2101 | 2117 | CFLAGS_gtk_main="${CFLAGS_gtk_main} ${CFLAGS_gtk} ${CFLAGS_familiar}" |
|---|
| 2102 | 2118 | LDFLAGS_gtk_main="${LDFLAGS_gtk_main} ${LDFLAGS_gtk} ${LDFLAGS_familiar}" |
|---|
| … | … | |
| 2124 | 2140 | fi]) |
|---|
| 2125 | 2141 | |
|---|
| 2126 | | dnl Automagically disable plugins if there is no system support for .so files |
|---|
| 2127 | | dnl don't forget vlc-win32 still can load .so as plugins |
|---|
| | 2142 | dnl Automagically disable plugins if there is no system support for |
|---|
| | 2143 | dnl dynamically loadable files (.so, .dll, .dylib). |
|---|
| | 2144 | dnl don't forget vlc-win32 still can load .dll as plugins |
|---|
| 2128 | 2145 | if test "x${ac_cv_header_dlfcn_h}" = "xno" -a "x${ac_cv_header_image_h}" = "xno" -a "x${SYS}" != "xmingw32" |
|---|
| 2129 | 2146 | then |
|---|
| r8641281 |
r2b0b788 |
|
| 50 | 50 | misc/memcpy/Modules.am \ |
|---|
| 51 | 51 | misc/network/Modules.am \ |
|---|
| | 52 | misc/testsuite/Modules.am \ |
|---|
| 52 | 53 | video_chroma/Modules.am \ |
|---|
| 53 | 54 | video_filter/Modules.am \ |
|---|
| r8641281 |
r2b0b788 |
|
| 1 | | SOURCES_null = modules/misc/null.c |
|---|
| 2 | 1 | SOURCES_gtk_main = modules/misc/gtk_main.c |
|---|
| 3 | 2 | SOURCES_gnome_main = modules/misc/gtk_main.c |
|---|
| r145b196 |
r2b0b788 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2002 VideoLAN |
|---|
| 5 | | * $Id: gtk_main.c,v 1.7 2002/10/03 13:21:55 sam Exp $ |
|---|
| | 5 | * $Id: gtk_main.c,v 1.8 2002/10/04 13:13:54 sam Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Samuel Hocevar <sam@zoy.org> |
|---|
| … | … | |
| 140 | 140 | } |
|---|
| 141 | 141 | |
|---|
| 142 | | static gint foo(gpointer foo) |
|---|
| 143 | | { |
|---|
| 144 | | return TRUE; |
|---|
| 145 | | } |
|---|
| | 142 | static gint foo( gpointer bar ) { return TRUE; } |
|---|
| 146 | 143 | |
|---|
| 147 | 144 | /***************************************************************************** |
|---|
| … | … | |
| 175 | 172 | vlc_thread_ready( p_this ); |
|---|
| 176 | 173 | |
|---|
| 177 | | /* If we don't add this simple timeout, gtk_main remains stuck ... */ |
|---|
| | 174 | /* If we don't add this simple timeout, gtk_main remains stuck if |
|---|
| | 175 | * we try to close the window without having sent any gtk event. */ |
|---|
| 178 | 176 | gtk_timeout_add( INTF_IDLE_SLEEP / 1000, foo, p_this ); |
|---|
| 179 | 177 | |
|---|
| r7689bc9 |
r2b0b788 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2002 VideoLAN |
|---|
| 5 | | * $Id: ipv6.c,v 1.2 2002/08/08 00:35:11 sam Exp $ |
|---|
| | 5 | * $Id: ipv6.c,v 1.3 2002/10/04 13:13:54 sam Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Alexis Guillard <alexis.guillard@bt.com> |
|---|
| … | … | |
| 147 | 147 | #endif |
|---|
| 148 | 148 | #if 0 |
|---|
| 149 | | msg_Warn( p_this, " = #%i\n", p_socket->sin6_scope_id ); |
|---|
| | 149 | msg_Warn( p_this, " = #%i", p_socket->sin6_scope_id ); |
|---|
| 150 | 150 | #endif |
|---|
| 151 | 151 | } |
|---|