Compare commits

...

2 Commits

Author SHA1 Message Date
myd7349 5ede0f5ef0 Force pkgconfig to UTF-8 5 years ago
Jussi Pakkanen 1ff6a8b5d5 Add entry for random design points. [skip ci] 5 years ago
  1. 13
      docs/markdown/Contributing.md
  2. 2
      mesonbuild/modules/pkgconfig.py

@ -291,3 +291,16 @@ Environment variables are like global variables, except that they are
also hidden by default. Envvars should be avoided whenever possible,
all functionality should be exposed in better ways such as command
line switches.
## Random design points that fit nowhere else
- All features should follow the 90/9/1 rule. 90% of all use cases
should be easy, 9% should be possible and it is totally fine to not
support the final 1% if it would make things too complicated.
- Any build directory will have at most two toolchains: one native and
one cross.
- Prefer specific solutions to generic frameworks. Solve the end
user's problems rather than providing them tools to do it
themselves.

@ -267,7 +267,7 @@ class PkgConfigModule(ExtensionModule):
# These always return paths relative to prefix
libdir = PurePath(coredata.get_builtin_option('libdir'))
incdir = PurePath(coredata.get_builtin_option('includedir'))
with open(fname, 'w') as ofile:
with open(fname, 'w', encoding='utf-8') as ofile:
ofile.write('prefix={}\n'.format(self._escape(prefix)))
ofile.write('libdir={}\n'.format(self._escape('${prefix}' / libdir)))
ofile.write('includedir={}\n'.format(self._escape('${prefix}' / incdir)))

Loading…
Cancel
Save