~ubuntu-branches/ubuntu/vivid/libsynthesis/vivid-201501071725

« back to all changes in this revision

Viewing changes to src/gen-makefile-am.sh

  • Committer: Bazaar Package Importer
  • Author(s): David Bremner
  • Date: 2010-11-20 19:50:44 UTC
  • mfrom: (3.1.3 experimental)
  • Revision ID: james.westby@ubuntu.com-20101120195044-8s6wxqb2d0nmqdv3
Tags: 3.4.0.6+ds5-2
* Upload to unstable.
* Add missing commit from upstream 3.4.0.6+ds5

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
cat > SDK_FILES <<EOF
12
12
enginemodulebridge.cpp
13
13
enginemodulebridge.h
14
 
stringutil.cpp
15
 
stringutil.h
16
14
target_options.h
17
15
san.cpp
18
16
san.h
22
20
UI_util.h
23
21
EOF
24
22
 
 
23
# files needed exclusively for libsynthesissdk.so
 
24
# They should not go into libsynthesissdk.a because the more complete set of
 
25
# code is available in the engine
 
26
cat > SDK_EXCLUDE_FILES <<EOF
 
27
stringutil.cpp
 
28
stringutil.h
 
29
EOF
 
30
 
25
31
# The distinction between client and server files is not
26
32
# important and even likely to be wrong/incomplete. Right now,
27
33
# all of these files are compiled into libsynthesis and only
44
50
admindata.h
45
51
dbitem.cpp
46
52
dbitem.h
47
 
blobs.cpp
48
 
blobs.h
49
53
enginesessiondispatch.cpp
50
54
syncserver.cpp
51
55
EOF
60
64
EOF
61
65
 
62
66
# files to be included in libsynthesis
63
 
cat EXTRA_FILES SDK_FILES > EXCLUDE_FILES
 
67
cat EXTRA_FILES SDK_FILES SDK_EXCLUDE_FILES> EXCLUDE_FILES
64
68
LIBSYNTHESIS_SOURCES=`find ${ENGINE_SOURCES} \
65
69
     syncapps/clientEngine_custom \
66
70
     syncapps/serverEngine_custom \
67
71
     sysync_SDK/DB_Interfaces/text_db \
68
72
     \( -name '*.cpp' -o -name '*.[ch]' \) |
69
 
    grep -v -E -f EXCLUDE_FILES`
 
73
    grep -v -E -f EXCLUDE_FILES |
 
74
    sort`
70
75
LIBSYNTHESIS_SOURCES=`echo $LIBSYNTHESIS_SOURCES`
71
76
 
72
77
# files to be included in both libsynthesis and libsynthesissdk;
75
80
cat SERVER_FILES CLIENT_FILES EXTRA_FILES > EXCLUDE_FILES
76
81
LIBSYNTHESISSDK_SOURCES_BOTH=`find sysync_SDK/Sources \
77
82
     \( -name '*.cpp' -o -name '*.c' \) |
78
 
    grep -v -E -f EXCLUDE_FILES`
 
83
    grep -v -E -f EXCLUDE_FILES |
 
84
    sort`
79
85
LIBSYNTHESISSDK_SOURCES_BOTH=`echo $LIBSYNTHESISSDK_SOURCES_BOTH`
80
86
 
81
87
# files only needed in libsynthesissdk
83
89
LIBSYNTHESISSDK_SOURCES_ONLY=`find sysync_SDK/Sources \
84
90
     \( -name '*.cpp' -o -name '*.c' \) |
85
91
    grep -E -f SDK_FILES |
86
 
    grep -v -E -f EXCLUDE_FILES`
 
92
    grep -v -E -f EXCLUDE_FILES |
 
93
    sort`
87
94
LIBSYNTHESISSDK_SOURCES_ONLY=`echo $LIBSYNTHESISSDK_SOURCES_ONLY`
88
95
 
89
96
# files needed in libsmltk
90
97
LIBSMLTK_SOURCES=`find syncml_tk \
91
98
     \( -name '*.cpp' -o -name '*.[ch]' \) \
92
99
     \! \( -path syncml_tk/src/sml/\*/palm/\* -o \
93
 
           -path syncml_tk/src/sml/\*/win/\* \)`
 
100
           -path syncml_tk/src/sml/\*/win/\* \) |
 
101
     sort`
94
102
LIBSMLTK_SOURCES=`echo $LIBSMLTK_SOURCES`
95
103
 
96
104
# header files required for using libsynthesissdk,
97
105
# with "synthesis/" prefix
98
 
LIBSYNTHESISSDK_HEADERS=`find sysync_SDK/Sources -name '*.h' | sed -e 's;.*/;synthesis/;'`
 
106
LIBSYNTHESISSDK_HEADERS=`find sysync_SDK/Sources -name '*.h' | sed -e 's;.*/;synthesis/;' | sort`
99
107
LIBSYNTHESISSDK_HEADERS=`echo $LIBSYNTHESISSDK_HEADERS`
100
108
 
101
109
sed -e "s;@LIBSYNTHESIS_SOURCES@;$LIBSYNTHESIS_SOURCES;" \