~ubuntu-branches/ubuntu/utopic/curl/utopic-updates

« back to all changes in this revision

Viewing changes to Android.mk

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-10-07 16:53:40 UTC
  • mfrom: (3.4.8 sid)
  • Revision ID: james.westby@ubuntu.com-20101007165340-3eahi7unrkt7magp
Tags: 7.21.1-1ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Keep build deps in main:
    - Drop build dependencies: stunnel, libssh2-1-dev
    - Add build-dependency on openssh-server
    - Drop libssh2-1-dev from libcurl4-openssl-dev's Depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
# shown. Now, from the external/curl/ directory, run curl's normal configure
13
13
# command with flags that match what Android itself uses. This will mean
14
14
# putting the compiler directory into the PATH, putting the -I, -isystem and
15
 
# -D options into CPPFLAGS, putting the -m, -f, -O and -nostdlib options into
16
 
# CFLAGS, and putting the -Wl, -L and -l options into LIBS, along with the path
17
 
# to the files libgcc.a, crtbegin_dynamic.o, and ccrtend_android.o. Remember
18
 
# that the paths must be absolute since you will not be running configure from
19
 
# the same directory as the Android make.  The normal cross-compiler options
20
 
# must also be set.
 
15
# -D options into CPPFLAGS, putting the -W, -m, -f, -O and -nostdlib options
 
16
# into CFLAGS, and putting the -Wl, -L and -l options into LIBS, along with the
 
17
# path to the files libgcc.a, crtbegin_dynamic.o, and ccrtend_android.o.
 
18
# Remember that the paths must be absolute since you will not be running
 
19
# configure from the same directory as the Android make.  The normal
 
20
# cross-compiler options must also be set. Note that the -c, -o, -MD and
 
21
# similar flags must not be set.
 
22
#
 
23
# To see all the LIBS options, you'll need to do the "showcommands" trick on an
 
24
# executable that's already buildable and watch what flags Android uses to link
 
25
# it (dhcpcd is a good choice to watch). You'll also want to add -L options to
 
26
# LIBS that point to the out/.../obj/lib/ and out/.../obj/system/lib/
 
27
# directories so that additional libraries can be found and used by curl.
21
28
#
22
29
# The end result will be a configure command that looks something like this
23
 
# (the environment variable A is set to the Android root path):
 
30
# (the environment variable A is set to the Android root path which makes the
 
31
# command shorter):
24
32
#
25
33
#  A=`realpath ../..` && \
26
34
#  PATH="$A/prebuilt/linux-x86/toolchain/arm-eabi-X/bin:$PATH" \
27
35
#  ./configure --host=arm-linux CC=arm-eabi-gcc \
28
36
#  CPPFLAGS="-I $A/system/core/include ..." \
29
37
#  CFLAGS="-nostdlib -fno-exceptions -Wno-multichar ..." \
30
 
#  LIB="$A/prebuilt/linux-x86/toolchain/arm-eabi-X/lib/gcc/arm-eabi/X\
31
 
#  /interwork/libgcc.a ..." \
 
38
#  LIBS="$A/prebuilt/linux-x86/toolchain/arm-eabi-X/lib/gcc/arm-eabi/X\
 
39
#  /interwork/libgcc.a ..."
32
40
#
33
41
# Finally, copy the file COPYING to NOTICE so that the curl license gets put
34
 
# into the right place (see the note about this below).
 
42
# into the right place (but see the note about this below).
35
43
#
36
44
# Dan Fandrich
37
 
# May 2010
 
45
# August 2010
38
46
 
39
47
LOCAL_PATH:= $(call my-dir)
40
48
 
82
90
 
83
91
include $(CLEAR_VARS)
84
92
include $(LOCAL_PATH)/src/Makefile.inc
85
 
LOCAL_SRC_FILES := $(addprefix src/,$(CURL_SOURCES))
 
93
LOCAL_SRC_FILES := $(addprefix src/,$(CURL_CFILES))
86
94
 
87
95
LOCAL_MODULE := curl
88
96
LOCAL_STATIC_LIBRARIES := libcurl
90
98
 
91
99
LOCAL_C_INCLUDES += $(LOCAL_PATH)/include $(LOCAL_PATH)/lib
92
100
 
93
 
# This will also need to include $(CURLX_ONES) in order to correctly link
94
 
# against a dynamic library
 
101
# This may also need to include $(CURLX_ONES) in order to correctly link
 
102
# if libcurl is changed to be built as a dynamic library
95
103
LOCAL_CFLAGS += $(common_CFLAGS)
96
104
 
97
105
include $(BUILD_EXECUTABLE)