summaryrefslogtreecommitdiff
path: root/system/build/dpkg/libchrome/debian/install_headers.sh
blob: 817f1a6efc244bf0689a7feaf3f0f86ad359a04f (plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash

destdir="$1"

header_dirs=(
    base
    base/allocator
    base/allocator/partition_allocator
    base/allocator/partition_allocator/starscan
    base/containers
    base/debug
    base/files
    base/functional
    base/hash
    base/i18n
    base/json
    base/memory
    base/message_loop
    base/metrics
    base/numerics
    base/posix
    base/process
    base/ranges
    base/strings
    base/synchronization
    base/system
    base/task
    base/task/common
    base/task/sequence_manager
    base/task/thread_pool
    base/test
    base/third_party/icu
    base/third_party/nspr
    base/third_party/valgrind
    base/threading
    base/time
    base/timer
    base/trace_event
    base/trace_event/common
    base/types
    build
    components/policy
    components/policy/core/common
    testing/gmock/include/gmock
    testing/gtest/include/gtest
    dbus
    third_party/abseil-cpp/absl/types
    third_party/perfetto/include/perfetto/tracing/
    third_party/perfetto/include/perfetto/protozero/
    third_party/perfetto/protos/perfetto/trace/track_event/
)

# Install header files.
for d in "${header_dirs[@]}" ; do
  mkdir -p "${destdir}/usr/include/libchrome/${d}"
  cp libchrome/"${d}"/*.h "${destdir}/usr/include/libchrome/${d}"
done