Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/D-Programming-Deimos/libX11
Core X11 protocol client library.
https://github.com/D-Programming-Deimos/libX11
Last synced: 18 days ago
JSON representation
Core X11 protocol client library.
- Host: GitHub
- URL: https://github.com/D-Programming-Deimos/libX11
- Owner: D-Programming-Deimos
- License: lgpl-3.0
- Created: 2012-01-11T00:25:35.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2022-04-18T15:32:25.000Z (over 2 years ago)
- Last Synced: 2024-07-31T22:56:08.347Z (3 months ago)
- Language: C
- Homepage:
- Size: 445 KB
- Stars: 39
- Watchers: 30
- Forks: 48
- Open Issues: 1
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
BUILD
-----
Default build use ldc2 as D compiler and build as a static lib. Use flag -j for speed up.
Commonly we use this formula: number of cores x 2 + 1
so if you have 4 cores: 4 x 2 + 1 = 9
In this case you add to make command this flag -j 9.- ldc2:
$ make
- dmd:
$ make DC=dmd
- gdc:
$ make DC=gdc- build as shared lib:
$ make shared-lib- Add D flag to build
$ make DCFLAGS+="-w -g -O3"INSTALL
-------
Usefull var PREFIX, LIB_DIR, DATA_DIR, DESTDIR
Default on *NIX:
PREFIX = /usr
BIN_DIR = /usr/bin
INCLUDE_DIR = /usr/include/d
LIB_DIR = /usr/lib or /usr/lib64 if you are on 64 bits system
DATA_DIR = /usr/shareDefault on Windows:
%ProgramFiles% = C:\Program Files
%programfiles(x86)% = C:\Program Files(x86)
PREFIX = C:\Program Files
BIN_DIR = C:\Program Files\\bin
INCLUDE_DIR = C:\Program Files\\import
LIB_DIR = C:\Program Files\\lib
DATA_DIR = C:\Program Files\\data
DESTDIR = , is empty this var it use for chroot an install
- Install: static lib, doc, header, pkgfile
$ su -c 'make install'-Install: shared lib, doc, header, pkgfile
$ su -c 'make install-shared'- Install both static and shared lib: static lib, shared lib, doc, header, pkgfile
$ su -c 'make install install-shared-lib'If you install a shred lib you need to run ldconfig:
su -c 'ldconfig'