@@ -70,49 +70,8 @@ if (PHP_MONGODB != "no") {
7070 /I" + configure_module_dirname + "/src/libmongoc/src/mongoc \
7171 " ;
7272
73- var PHP_MONGODB_SOURCES = "\
74- php_phongo.c \
75- phongo_compat.c \
76- src/bson.c \
77- src/BSON/Binary.c \
78- src/BSON/Decimal128.c \
79- src/BSON/Javascript.c \
80- src/BSON/MaxKey.c \
81- src/BSON/MinKey.c \
82- src/BSON/ObjectID.c \
83- src/BSON/Persistable.c \
84- src/BSON/Regex.c \
85- src/BSON/Serializable.c \
86- src/BSON/Timestamp.c \
87- src/BSON/Type.c \
88- src/BSON/Unserializable.c \
89- src/BSON/UTCDateTime.c \
90- src/MongoDB/BulkWrite.c \
91- src/MongoDB/Command.c \
92- src/MongoDB/Cursor.c \
93- src/MongoDB/CursorId.c \
94- src/MongoDB/Manager.c \
95- src/MongoDB/Query.c \
96- src/MongoDB/ReadConcern.c \
97- src/MongoDB/ReadPreference.c \
98- src/MongoDB/Server.c \
99- src/MongoDB/WriteConcern.c \
100- src/MongoDB/WriteConcernError.c \
101- src/MongoDB/WriteError.c \
102- src/MongoDB/WriteResult.c \
103- src/MongoDB/Exception/AuthenticationException.c \
104- src/MongoDB/Exception/BulkWriteException.c \
105- src/MongoDB/Exception/ConnectionException.c \
106- src/MongoDB/Exception/ConnectionTimeoutException.c \
107- src/MongoDB/Exception/Exception.c \
108- src/MongoDB/Exception/ExecutionTimeoutException.c \
109- src/MongoDB/Exception/InvalidArgumentException.c \
110- src/MongoDB/Exception/LogicException.c \
111- src/MongoDB/Exception/RuntimeException.c \
112- src/MongoDB/Exception/SSLConnectionException.c \
113- src/MongoDB/Exception/UnexpectedValueException.c \
114- src/MongoDB/Exception/WriteException.c \
115- " ;
73+ // Condense whitespace in CFLAGS
74+ PHP_MONGODB_CFLAGS = PHP_MONGODB_CFLAGS . replace ( / \s + / g, ' ' ) ;
11675
11776 // Generated with: find src/libbson/src/bson -name '*.c' -print0 | cut -sz -d / -f 5- | sort -z | tr '\000' ' '
11877 var PHP_MONGODB_BSON_SOURCES = "bcon.c bson-atomic.c bson.c bson-clock.c bson-context.c bson-decimal128.c bson-error.c bson-iso8601.c bson-iter.c bson-json.c bson-keys.c bson-md5.c bson-memory.c bson-oid.c bson-reader.c bson-string.c bson-timegm.c bson-utf8.c bson-value.c bson-version-functions.c bson-writer.c" ;
@@ -123,7 +82,11 @@ if (PHP_MONGODB != "no") {
12382 // Generated with: find src/libmongoc/src/mongoc -name '*.c' -print0 | cut -sz -d / -f 4- | sort -z | tr '\000' ' '
12483 var PHP_MONGODB_MONGOC_SOURCES = "mongoc-apm.c mongoc-array.c mongoc-async.c mongoc-async-cmd.c mongoc-b64.c mongoc-buffer.c mongoc-bulk-operation.c mongoc-client.c mongoc-client-pool.c mongoc-cluster.c mongoc-collection.c mongoc-counters.c mongoc-crypto.c mongoc-crypto-cng.c mongoc-crypto-common-crypto.c mongoc-crypto-openssl.c mongoc-cursor-array.c mongoc-cursor.c mongoc-cursor-cursorid.c mongoc-cursor-transform.c mongoc-database.c mongoc-find-and-modify.c mongoc-gridfs.c mongoc-gridfs-file.c mongoc-gridfs-file-list.c mongoc-gridfs-file-page.c mongoc-handshake.c mongoc-host-list.c mongoc-index.c mongoc-init.c mongoc-libressl.c mongoc-linux-distro-scanner.c mongoc-list.c mongoc-log.c mongoc-matcher.c mongoc-matcher-op.c mongoc-memcmp.c mongoc-opcode.c mongoc-openssl.c mongoc-queue.c mongoc-rand-cng.c mongoc-rand-common-crypto.c mongoc-rand-openssl.c mongoc-read-concern.c mongoc-read-prefs.c mongoc-rpc.c mongoc-sasl.c mongoc-scram.c mongoc-secure-channel.c mongoc-secure-transport.c mongoc-server-description.c mongoc-server-stream.c mongoc-set.c mongoc-socket.c mongoc-ssl.c mongoc-stream-buffered.c mongoc-stream.c mongoc-stream-file.c mongoc-stream-gridfs.c mongoc-stream-socket.c mongoc-stream-tls.c mongoc-stream-tls-libressl.c mongoc-stream-tls-openssl-bio.c mongoc-stream-tls-openssl.c mongoc-stream-tls-secure-channel.c mongoc-stream-tls-secure-transport.c mongoc-topology.c mongoc-topology-description-apm.c mongoc-topology-description.c mongoc-topology-scanner.c mongoc-uri.c mongoc-util.c mongoc-version-functions.c mongoc-write-command.c mongoc-write-concern.c" ;
12584
126- EXTENSION ( "mongodb" , PHP_MONGODB_SOURCES , null , PHP_MONGODB_CFLAGS ) ;
85+ EXTENSION ( "mongodb" , "php_phongo.c phongo_compat.c" , null , PHP_MONGODB_CFLAGS ) ;
86+ ADD_SOURCES ( configure_module_dirname + "/src" , "bson.c" , "mongodb" ) ;
87+ ADD_SOURCES ( configure_module_dirname + "/src/BSON" , "Binary.c Decimal128.c Javascript.c MaxKey.c MinKey.c ObjectID.c Persistable.c Regex.c Serializable.c Timestamp.c Type.c Unserializable.c UTCDateTime.c" , "mongodb" ) ;
88+ ADD_SOURCES ( configure_module_dirname + "/src/MongoDB" , "BulkWrite.c Command.c Cursor.c CursorId.c Manager.c Query.c ReadConcern.c ReadPreference.c Server.c WriteConcern.c WriteConcernError.c WriteError.c WriteResult.c" , "mongodb" ) ;
89+ ADD_SOURCES ( configure_module_dirname + "/src/MongoDB/Exception" , "AuthenticationException.c BulkWriteException.c ConnectionException.c ConnectionTimeoutException.c Exception.c ExecutionTimeoutException.c InvalidArgumentException.c LogicException.c RuntimeException.c SSLConnectionException.c UnexpectedValueException.c WriteException.c" , "mongodb" ) ;
12790 ADD_SOURCES ( configure_module_dirname + "/src/libbson/src/bson" , PHP_MONGODB_BSON_SOURCES , "mongodb" ) ;
12891 ADD_SOURCES ( configure_module_dirname + "/src/libbson/src/yajl" , PHP_MONGODB_YAJL_SOURCES , "mongodb" ) ;
12992 ADD_SOURCES ( configure_module_dirname + "/src/libmongoc/src/mongoc" , PHP_MONGODB_MONGOC_SOURCES , "mongodb" ) ;
0 commit comments