Armando Montanez
82bbce4aeb
Remove legacy_target.gni
...
Transition to args is done, so this import is no longer needed.
Change-Id: Id42e06ec9fcc16eace2cc7ef51a5dacaf012147a
2020-06-16 09:50:59 -07:00
Armando Montanez
fb3d3fba79
Don't declare pigweed variables as globals
...
Require targets to explicitly import pigweed variable definitions. This
moves out some necessary logic from the BUILDCONFIG.gn file.
Change-Id: If9c9fe5a680cc9d897a0e8a55889873be618ed84
2020-06-16 09:50:59 -07:00
Alexei Frolov
edd2f148be
pw_build: Switch to pw_* target types
...
This change replaces the implicit overrides of the default GN target
types in BUILDCONFIG.gn with explicit pw_* versions. This is done to
allow Pigweed to build within larger GN projects without modifying their
BUILDCONFIG files.
Change-Id: I1d1e41d5e9bde8fe076f7031f3c2b98b9630ff70
2020-06-16 09:50:59 -07:00
Rob Mohr
a0ba54f648
Roll GN to 239533d
...
This caused gn format to flag many things which were also fixed.
Change-Id: Ie1d9081a1b08047bec52c60f54d2a94366be1ba6
2020-02-28 01:33:18 +00:00
Wyatt Hepler
becb431e5f
Apply pw format to the repository
...
Change-Id: I3c8e4f956dfe6c9e81d3069f72c30c5950852074
2019-12-05 09:31:11 -08:00
Wyatt Hepler
fe85de25cf
pw_string: start docs; StringBuilder size report
...
Change-Id: Id1dbc070b14a85aeb782606e85d566ed0347fcd4
2019-11-26 21:27:22 +00:00
Wyatt Hepler
8a823ceebb
Size report for pw::string::Format
...
Add size report comparing pw::string::Format to std::snprintf.
Report with arm-none-eabi-gcc at -Os:
Using pw::string::Format instead of snprintf
────────────────────────────────────────────
┌────────────────────────────┬───────────┬────────┬───────┬────────┐
│ Label │ Segment │ Before │ Delta │ After │
├════════════════════════════┼═══════════┼════════┼═══════┼════════┤
│ One string, return size │ SEG FLASH │ 2,840 │ +80 │ 2,920 │
├────────────────────────────┼───────────┼────────┼───────┼────────┤
│ Ten strings, handle errors │ (all) │ (same) │ 0 │ (same) │
├────────────────────────────┼───────────┼────────┼───────┼────────┤
│ Fifty calls, same buffer │ SEG FLASH │ 3,816 │ -72 │ 3,744 │
└────────────────────────────┴───────────┴────────┴───────┴────────┘
Change-Id: Id484530320b0334cddf676a49ad79444fbbbde9b
2019-11-19 12:58:31 -08:00