Codebase list android-platform-external-libselinux / 8462686
Merge branch 'master' into 'master' Switch to PCRE2 See merge request android-tools-team/android-platform-external-libselinux!13 Roger Shimizu 9 months ago
3 changed file(s) with 6 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
66 Umang Parmar <umangjparmar@gmail.com>
77 Build-Depends: debhelper-compat (= 12),
88 dh-exec,
9 libpcre3-dev
9 libpcre2-dev
1010 Standards-Version: 4.5.0
1111 Rules-Requires-Root: no
1212 Homepage: https://android.googlesource.com/platform/external/selinux
00 NAME = libselinux
11
22 cc_defaults_target_host_cflags = -DBUILD_HOST
3
4 cc_library_cflags = -DUSE_PCRE2
53
64 cc_defaults_srcs = \
75 src/booleans.c \
6462 -D_GNU_SOURCE \
6563 -DNO_MEDIA_BACKEND \
6664 -DNO_X_BACKEND \
67 -DNO_DB_BACKEND
65 -DNO_DB_BACKEND \
66 -DUSE_PCRE2 \
67 -DPCRE2_CODE_UNIT_WIDTH=8
6868 CPPFLAGS += -Ilibselinux/include -Ilibsepol/include -DHOST
6969 LDFLAGS += -shared -Wl,-soname,$(NAME).so.0 \
70 -Wl,-rpath=/usr/lib/$(DEB_HOST_MULTIARCH)/android -lpcre \
70 -Wl,-rpath=/usr/lib/$(DEB_HOST_MULTIARCH)/android -lpcre2-8 \
7171 -Ldebian/out -lsepol
7272
7373 build: $(SOURCES)
4747 SOURCES := $(foreach source, $(SOURCES), libsepol/$(source))
4848 CFLAGS += \
4949 -D_GNU_SOURCE \
50 -DUSE_PCRE2 \
5051 -Wundef \
5152 -Wshadow \
5253 -Wmissing-noreturn \