Raw- and BaseSdk/Platform

dev
Marko Semet 2018-11-10 14:21:49 +01:00
parent fe7449081d
commit 3cfa9a602a
7 changed files with 106 additions and 0 deletions

View File

@ -0,0 +1,20 @@
build-runtime: true
writable-sdk: true
id: de.marko10_000.winebarrels.BaseSdk
id-platform: de.marko10_000.winebarrels.BasePlatform
branch: wb-uno
sdk: de.marko10_000.winebarrels.RawSdk
runtime: de.marko10_000.winebarrels.RawPlatform
runtime-version: wb-raw-uno
inherit-extensions:
- de.marko10_000.winebarrels.RawPlatform
inherit-sdk-extensions:
- de.marko10_000.winebarrels.RawSdk
modules:
- tools/is-x86_64.yaml
- tools/ld-update.yaml

View File

@ -0,0 +1,21 @@
build-runtime: true
writable-sdk: true
id: de.marko10_000.winebarrels.RawPlatform
branch: wb-raw-uno
sdk: org.gnome.Platform
runtime: org.gnome.Platform
runtime-version: 3.30
add-extensions:
org.freedesktop.Platform.Compat.i386:
directory: lib/i386
remove-after-build: false
bundle: false
version: 18.08
modules:
- tools/is-x86_64.yaml
- tools/add-libs.yaml

22
RawSdk-x84_64.yaml 100644
View File

@ -0,0 +1,22 @@
build-runtime: true
writable-sdk: true
id: de.marko10_000.winebarrels.RawSdk
id-platform: de.marko10_000.winebarrels.RawPlatform
branch: wb-raw-uno
sdk: org.gnome.Sdk
runtime: org.gnome.Sdk
runtime-version: 3.30
add-extensions:
org.freedesktop.Platform.Compat.i386:
directory: lib/i386
remove-after-build: false
bundle: false
version: 18.08
modules:
- tools/is-x86_64.yaml
- tools/add-libs.yaml

View File

@ -0,0 +1,9 @@
name: addLibs
buildsystem: simple
build-commands:
- mkdir /usr/lib/i386
- mkdir /usr/lib/gl_i386
- echo /usr/lib/i386 >> /etc/ld.so.conf
- echo /usr/lib/gl-i386 >> /etc/ld.so.conf
only-arches:
- x86_64

View File

@ -0,0 +1,6 @@
name: check-arch
buildsystem: simple
build-commands:
- false
skip-arches:
- x86_64

20
tools/ld-links.py 100755
View File

@ -0,0 +1,20 @@
#!/usr/bin/env python3
import os
import sys
import re
_match = re.compile("^(?P<path>.*/[^.]*)\\.[0-9]*\\.so$")
def link_when_match(path):
tmp = _match.match(path)
if tmp:
tmp = tmp.groupdict()
os.symlink(path, tmp["path"] + ".so")
print("Link: " + tmp["path"] + ".so")
if __name__ == '__main__':
for i in os.listdir(sys.argv[1]):
link_when_match(os.path.join(sys.argv[1], i))

View File

@ -0,0 +1,8 @@
name: ld-update
sources:
- type: file
path: ld-links.py
buildsystem: simple
build-commands:
- ls -la /usr/lib/i386
- ./ld-links.py /usr/lib/i386