Skip to content

Commit

Permalink
compiler hashtable.c and pinyin.c directly, do not use static library
Browse files Browse the repository at this point in the history
  • Loading branch information
duguying committed Jan 29, 2014
1 parent 06a57bd commit adf7dfa
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 31 deletions.
21 changes: 12 additions & 9 deletions config.m4
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
PHP_ARG_WITH(pinyin, for pinyin support,
[ --with-pinyin Include pinyin support])

cd ./pinyin/
make
cd ..
dnl cd ./pinyin/
dnl make
dnl cd ..

PHP_ADD_INCLUDE(pinyin)

PHP_ADD_LIBPATH(pinyin, PINYIN_SHARED_LIBADD)
PHP_ADD_LIBRARY(pinyin,pinyin, PINYIN_SHARED_LIBADD)
PHP_SUBST(PINYIN_SHARED_LIBADD)
dnl PHP_ADD_LIBPATH(pinyin, PINYIN_SHARED_LIBADD)
dnl PHP_ADD_LIBRARY(pinyin,pinyin, PINYIN_SHARED_LIBADD)
dnl PHP_SUBST(PINYIN_SHARED_LIBADD)

if test "$PHP_PINYIN" != "no"; then
PHP_NEW_EXTENSION(pinyin, pinyin.c ,$ext_shared)
fi
dnl if test "$PHP_PINYIN" != "no"; then
PHP_NEW_EXTENSION(pinyin, pinyin.c \
pinyin/hashtable.c \
pinyin/pinyin.c \
,$ext_shared)
dnl fi
13 changes: 0 additions & 13 deletions pinyin/CMakeLists.txt

This file was deleted.

9 changes: 0 additions & 9 deletions pinyin/Makefile

This file was deleted.

0 comments on commit adf7dfa

Please sign in to comment.