forked from dinhvh/ctemplate
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfigure-apple.sh
executable file
·37 lines (31 loc) · 1.59 KB
/
configure-apple.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/sh
set -ex
current_dir="$(dirname "$0")"
temp_dir="/tmp/ctemplate"
cd $current_dir
rm -rf $temp_dir
mkdir -p $temp_dir
# Configure ctemplate for Android
cp -r ./* $temp_dir
pushd $temp_dir
./configure --host=$TARGET
./src/htmlparser/generate_fsm.py ./src/htmlparser/htmlparser_fsm.config > src/htmlparser/htmlparser_fsm.h
./src/htmlparser/generate_fsm.py ./src/htmlparser/jsparser_fsm.config > src/htmlparser/jsparser_fsm.h
popd
cp $temp_dir/src/config.h ./config/apple
cp $temp_dir/src/ctemplate/find_ptr.h ./include/apple/ctemplate
cp $temp_dir/src/ctemplate/per_expand_data.h ./include/apple/ctemplate
cp $temp_dir/src/ctemplate/str_ref.h ./include/apple/ctemplate
cp $temp_dir/src/ctemplate/template_annotator.h ./include/apple/ctemplate
cp $temp_dir/src/ctemplate/template_cache.h ./include/apple/ctemplate
cp $temp_dir/src/ctemplate/template_dictionary_interface.h ./include/apple/ctemplate
cp $temp_dir/src/ctemplate/template_dictionary.h ./include/apple/ctemplate
cp $temp_dir/src/ctemplate/template_emitter.h ./include/apple/ctemplate
cp $temp_dir/src/ctemplate/template_enums.h ./include/apple/ctemplate
cp $temp_dir/src/ctemplate/template_modifiers.h ./include/apple/ctemplate
cp $temp_dir/src/ctemplate/template_namelist.h ./include/apple/ctemplate
cp $temp_dir/src/ctemplate/template_pathops.h ./include/apple/ctemplate
cp $temp_dir/src/ctemplate/template_string.h ./include/apple/ctemplate
cp $temp_dir/src/ctemplate/template.h ./include/apple/ctemplate
cp $temp_dir/src/htmlparser/htmlparser_fsm.h ./include/apple/htmlparser
cp $temp_dir/src/htmlparser/jsparser_fsm.h ./include/apple/htmlparser