File: lib

package info (click to toggle)
shaderc 2023.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,884 kB
  • sloc: cpp: 9,373; python: 4,759; ansic: 689; sh: 297; makefile: 22
file content (24 lines) | stat: -rw-r--r-- 551 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

set -e

cd $AUTOPKGTEST_TMP

dummy_source=dummy.c
dummy_binary=dummy

# From https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/shaderc.rb:
cat > $dummy_source <<EOF
#include <shaderc/shaderc.h>
int main() {
    int version;
    shaderc_profile profile;
    if (!shaderc_parse_version_profile("450core", &version, &profile))
        return 1;
    return (profile == shaderc_profile_core) ? 0 : 1;
}
EOF

g++ -o $dummy_binary $dummy_source $(pkg-config --libs --cflags shaderc glslang spirv)
test -x $dummy_binary
./$dummy_binary