Changeset b6b695f1884564441499b817246a1c0536c23225
- Timestamp:
- 05/21/08 19:48:11
(4 months ago)
- Author:
- Rémi Denis-Courmont <rem@videolan.org>
- git-committer:
- Rémi Denis-Courmont <rem@videolan.org> 1211392091 +0300
- git-parent:
[c5e0f9db280c579c65845614fda229f5363d94d1]
- git-author:
- Rémi Denis-Courmont <rem@videolan.org> 1211392091 +0300
- Message:
Remove internal Python build support
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rb26f5a2 |
rb6b695f |
|
| 10 | 10 | BASE_SUBDIRS = po src modules share doc test |
|---|
| 11 | 11 | EXTRA_SUBDIRS = m4 extras/package/ipkg \ |
|---|
| 12 | | bindings/python \ |
|---|
| 13 | 12 | libs/loader libs/srtp \ |
|---|
| 14 | 13 | projects/mozilla projects/activex |
|---|
| … | … | |
| 28 | 27 | if BUILD_ACTIVEX |
|---|
| 29 | 28 | SUBDIRS += projects/activex |
|---|
| 30 | | endif |
|---|
| 31 | | if BUILD_PYTHON |
|---|
| 32 | | SUBDIRS += bindings/python |
|---|
| 33 | 29 | endif |
|---|
| 34 | 30 | |
|---|
| r84d0f81 |
rb6b695f |
|
| 3 | 3 | |
|---|
| 4 | 4 | # Get build variables (buildir, srcdir) |
|---|
| 5 | | try: |
|---|
| 6 | | top_builddir=os.environ['top_builddir'] |
|---|
| 7 | | except KeyError: |
|---|
| 8 | | # Note: do not initialize here, so that we get |
|---|
| 9 | | # a correct default value if the env. var is |
|---|
| 10 | | # defined but empty |
|---|
| 11 | | top_builddir=None |
|---|
| 12 | | if not top_builddir: |
|---|
| 13 | | top_builddir = os.path.join( '..', '..' ) |
|---|
| 14 | | os.environ['top_builddir'] = top_builddir |
|---|
| | 5 | top_builddir = os.path.join( '..', '..' ) |
|---|
| | 6 | os.environ['top_builddir'] = top_builddir |
|---|
| 15 | 7 | |
|---|
| 16 | 8 | # Determine the extra link args. Normally, vlc-config should take care |
|---|
| … | … | |
| 31 | 23 | |
|---|
| 32 | 24 | # For out-of-tree compilations |
|---|
| 33 | | try: |
|---|
| 34 | | srcdir=os.environ['srcdir'] |
|---|
| 35 | | except KeyError: |
|---|
| 36 | | # Note: same as above |
|---|
| 37 | | srcdir=None |
|---|
| 38 | | if not srcdir: |
|---|
| 39 | | srcdir = '.' |
|---|
| | 25 | srcdir = '.' |
|---|
| 40 | 26 | |
|---|
| 41 | 27 | def get_vlcconfig(): |
|---|
| rc5e0f9d |
rb6b695f |
|
| 29 | 29 | [enable_maintainer_mode="yes"]) |
|---|
| 30 | 30 | AM_MAINTAINER_MODE |
|---|
| | 31 | |
|---|
| | 32 | dnl |
|---|
| | 33 | dnl Deprecated options |
|---|
| | 34 | dnl to notify packagers that stuff has changed |
|---|
| | 35 | dnl |
|---|
| | 36 | AC_ARG_ENABLE(python-bindings, |
|---|
| | 37 | [ --enable-python-bindings Always fails for historical reasons)],, |
|---|
| | 38 | [enable_python_bindings="no"]) |
|---|
| | 39 | AS_IF([test "${enable_python_bindings}" != "no"], [ |
|---|
| | 40 | AC_MSG_ERROR([Python bindings are now built from a separate source package]) |
|---|
| | 41 | ]) |
|---|
| | 42 | |
|---|
| | 43 | AC_ARG_ENABLE(java-bindings, |
|---|
| | 44 | [ --enable-java-bindings Always fails for historical reasons],, |
|---|
| | 45 | [enable_java_bindings="no"]) |
|---|
| | 46 | AS_IF([test "${enable_java_bindings}" != "no"], [ |
|---|
| | 47 | AC_MSG_ERROR([Java bindings are now built from a separate source package]) |
|---|
| | 48 | ]) |
|---|
| 31 | 49 | |
|---|
| 32 | 50 | dnl |
|---|
| … | … | |
| 6147 | 6165 | |
|---|
| 6148 | 6166 | dnl |
|---|
| 6149 | | dnl Mediacontrol Python bindings |
|---|
| 6150 | | dnl |
|---|
| 6151 | | AC_ARG_ENABLE(python-bindings, |
|---|
| 6152 | | [ --enable-python-bindings Enable Python bindings (default disabled)]) |
|---|
| 6153 | | |
|---|
| 6154 | | if test "${enable_python_bindings}" = "yes"; then |
|---|
| 6155 | | AC_PATH_PROG(PYTHON_CONFIG, python-config, no) |
|---|
| 6156 | | CFLAGS="${CFLAGS_save} `${PYTHON_CONFIG} --cflags`" |
|---|
| 6157 | | AC_CHECK_HEADER([Python.h], |
|---|
| 6158 | | PLUGINS_BINDINGS="${PLUGINS_BINDINGS} python", |
|---|
| 6159 | | AC_MSG_ERROR([You have to install python-dev to build the bindings]), |
|---|
| 6160 | | [] |
|---|
| 6161 | | ) |
|---|
| 6162 | | CFLAGS="${CFLAGS_save}" |
|---|
| 6163 | | fi |
|---|
| 6164 | | AM_CONDITIONAL(BUILD_PYTHON, [test "${enable_python_bindings}" = "yes"]) |
|---|
| 6165 | | |
|---|
| 6166 | | dnl |
|---|
| 6167 | | dnl Java bindings |
|---|
| 6168 | | dnl |
|---|
| 6169 | | AC_ARG_ENABLE(java-bindings, |
|---|
| 6170 | | [ --enable-java-bindings Always fail for historical reasons],, |
|---|
| 6171 | | [enable_java_bindings="no"]) |
|---|
| 6172 | | AS_IF([test "${enable_java_bindings}" != "no"], [ |
|---|
| 6173 | | AC_MSG_ERROR([Java bindings are now built from a separate source package]) |
|---|
| 6174 | | ]) |
|---|
| 6175 | | |
|---|
| 6176 | | dnl |
|---|
| 6177 | 6167 | dnl test plugins |
|---|
| 6178 | 6168 | dnl |
|---|
| … | … | |
| 6248 | 6238 | VLC_ADD_LDFLAGS([qte_main],[${LDFLAGS_qte} ${LDFLAGS_qt_video}]) |
|---|
| 6249 | 6239 | fi |
|---|
| 6250 | | |
|---|
| 6251 | 6240 | |
|---|
| 6252 | 6241 | dnl |
|---|