#!/bin/sh12set -eux34# When parsing Obj-c source files, we need to be able to import type5# definitions for all types we use, otherwise clang will treat them6# as `long *`.7#8# This script enumerates all swift files in our codebase (including our Pods)9# and generates fake Obj-c headers (.h) that @interface and @protocol10# stubs for each swift class. This is analogous to a very simplified11# version of the "-Swift.h" files used by Swift for bridging.12Scripts/sds_codegen/sds_parse_swift_bridging.py --src-path . --swift-bridging-path Scripts/sds_codegen/sds-includes1314# We parse Obj-C source files (.m only, not .mm yet) to extract simple class descriptions (class name, base class, property names and types, etc.)15Scripts/sds_codegen/sds_parse_objc.py --src-path SignalServiceKit/ --swift-bridging-path Scripts/sds_codegen/sds-includes1617Scripts/sds_codegen/sds_regenerate.sh1819# lint & reformat generated sources20find SignalServiceKit -type f -exec grep --quiet --fixed-strings '// --- CODE GENERATION MARKER' {} \; -print0 | xargs -0 Scripts/precommit.py212223