1#!/bin/bash 2 3destdir="$1" 4 5header_dirs=( 6 base 7 base/allocator 8 base/allocator/partition_allocator 9 base/allocator/partition_allocator/starscan 10 base/containers 11 base/debug 12 base/files 13 base/functional 14 base/hash 15 base/i18n 16 base/json 17 base/memory 18 base/message_loop 19 base/metrics 20 base/numerics 21 base/posix 22 base/process 23 base/ranges 24 base/strings 25 base/synchronization 26 base/system 27 base/task 28 base/task/common 29 base/task/sequence_manager 30 base/task/thread_pool 31 base/test 32 base/third_party/icu 33 base/third_party/nspr 34 base/third_party/valgrind 35 base/threading 36 base/time 37 base/timer 38 base/trace_event 39 base/trace_event/common 40 base/types 41 build 42 components/policy 43 components/policy/core/common 44 testing/gmock/include/gmock 45 testing/gtest/include/gtest 46 dbus 47 third_party/abseil-cpp/absl/types 48 third_party/perfetto/include/perfetto/tracing/ 49 third_party/perfetto/include/perfetto/protozero/ 50 third_party/perfetto/protos/perfetto/trace/track_event/ 51) 52 53# Install header files. 54for d in "${header_dirs[@]}" ; do 55 mkdir -p "${destdir}/usr/include/libchrome/${d}" 56 cp libchrome/"${d}"/*.h "${destdir}/usr/include/libchrome/${d}" 57done 58