···177177 ${CMAKE_CURRENT_SOURCE_DIR}/DataDetectorsNaturalLanguage/include
178178 ${CMAKE_CURRENT_SOURCE_DIR}/SecurityInterface/include
179179 ${CMAKE_CURRENT_SOURCE_DIR}/Carbon/include
180180+ ${CMAKE_CURRENT_SOURCE_DIR}/Quartz/include
180181)
181182182183# It must be done in this scope
···344345add_subdirectory(DataDetectorsNaturalLanguage)
345346add_subdirectory(SecurityInterface)
346347add_subdirectory(Carbon)
348348+add_subdirectory(Quartz)
347349348350# /Applications
349351#add_subdirectory(external/TextEdit)
+16
src/Quartz/CMakeLists.txt
···11+project(Quartz)
22+33+set(DYLIB_COMPAT_VERSION "1.0.0")
44+set(DYLIB_CURRENT_VERSION "1.0.0")
55+66+add_framework(Quartz
77+ FAT
88+ CURRENT_VERSION
99+ VERSION "A"
1010+1111+ SOURCES
1212+ src/Quartz.c
1313+1414+ DEPENDENCIES
1515+ system
1616+)
+25
src/Quartz/include/Quartz/Quartz.h
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2017 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+2121+#ifndef _Quartz_H_
2222+#define _Quartz_H_
2323+2424+2525+#endif
+29
src/Quartz/src/Quartz.c
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2017 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+2121+#include <Quartz/Quartz.h>
2222+#include <stdlib.h>
2323+2424+static int verbose = 0;
2525+2626+__attribute__((constructor))
2727+static void initme(void) {
2828+ verbose = getenv("STUB_VERBOSE") != NULL;
2929+}