File: meson.build

package info (click to toggle)
numpy 1%3A2.2.4%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 83,420 kB
  • sloc: python: 248,499; asm: 232,365; ansic: 216,874; cpp: 135,657; f90: 1,540; sh: 938; fortran: 558; makefile: 409; sed: 139; xml: 109; java: 92; perl: 79; cs: 54; javascript: 53; objc: 29; lex: 13; yacc: 9
file content (19 lines) | stat: -rw-r--r-- 737 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
project('proj', 'c')

if meson.backend() == 'xcode'
    # Xcode gives object files unique names but only if they would clash. For example
    # two files named lib.o instead get the following names:
    #
    # lib-4fbe522d8ba4cb1f1b89cc2df640a2336b92e1a5565f0a4c5a79b5b5e2969eb9.o
    # lib-4fbe522d8ba4cb1f1b89cc2df640a2336deeff2bc2297affaadbe20f5cbfee56.o
    #
    # No-one has reverse engineered the naming scheme so we would access them.
    # IF you feel up to the challenge, patches welcome.
    error('MESON_SKIP_TEST, Xcode cannot extract objs when they would have the same filename.')
endif

sources = []
subdir('dir1')
subdir('dir2')
subdir('dir3')
executable('a.out', sources : sources, objects : lib.extract_all_objects())