moz.build (1382B)
1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- 2 # vim: set filetype=python: 3 # This Source Code Form is subject to the terms of the Mozilla Public 4 # License, v. 2.0. If a copy of the MPL was not distributed with this 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 6 7 if CONFIG["MOZ_FOLD_LIBS"]: 8 Library("plc4") 9 else: 10 SharedLibrary("plc4") 11 SOURCES += ["/nsprpub/lib/libc/src/plvrsion.c"] 12 USE_LIBS += ["nspr4"] 13 14 # We allow warnings for third-party code that can be updated from upstream. 15 # TODO: fix NSPR warnings and remove this 16 AllowCompilerWarnings() 17 18 DEFINES["_NSPR_BUILD_"] = True 19 20 LOCAL_INCLUDES += [ 21 "/config/external/nspr", 22 ] 23 24 EXPORTS.nspr += [ 25 "/nsprpub/lib/libc/include/plbase64.h", 26 "/nsprpub/lib/libc/include/plerror.h", 27 "/nsprpub/lib/libc/include/plgetopt.h", 28 "/nsprpub/lib/libc/include/plstr.h", 29 ] 30 31 SOURCES += [ 32 "/nsprpub/lib/libc/src/base64.c", 33 "/nsprpub/lib/libc/src/plerror.c", 34 "/nsprpub/lib/libc/src/plgetopt.c", 35 "/nsprpub/lib/libc/src/strcase.c", 36 "/nsprpub/lib/libc/src/strcat.c", 37 "/nsprpub/lib/libc/src/strchr.c", 38 "/nsprpub/lib/libc/src/strcmp.c", 39 "/nsprpub/lib/libc/src/strcpy.c", 40 "/nsprpub/lib/libc/src/strdup.c", 41 "/nsprpub/lib/libc/src/strlen.c", 42 "/nsprpub/lib/libc/src/strpbrk.c", 43 "/nsprpub/lib/libc/src/strstr.c", 44 "/nsprpub/lib/libc/src/strtok.c", 45 ]