]>
git.saurik.com Git - apple/mdnsresponder.git/blob - mDNSMacOS9/mDNSPrefix.h
1 /* -*- Mode: C; tab-width: 4 -*-
3 * Copyright (c) 2004 Apple Computer, Inc. All rights reserved.
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
18 // Global definitions that apply to all source files
20 // Symbols that are defined here are available within all source files.
21 // This is the equivalent of using using "-d SYMBOL=VALUE" in a Makefile
22 // in command-line build environments.
24 // For normal DeferredTask time execution, set MDNS_ONLYSYSTEMTASK to 0
25 // For easier debugging, set MDNS_ONLYSYSTEMTASK to 1, and OT Notifier executions
26 // will be deferred until SystemTask time. (This option is available only for building
27 // the standalone application samples that have their own event loop -- don't try
28 // to build the System Extension with MDNS_ONLYSYSTEMTASK set because it won't work.)
30 #if __ide_target("Standalone TestResponder") || __ide_target("Standalone TestSearcher") || __ide_target("Standalone SubTypeTester")
31 #define TARGET_API_MAC_CARBON 1
32 #define OTCARBONAPPLICATION 1
33 #define MDNS_ONLYSYSTEMTASK 0
34 #define MDNS_DEBUGMSGS 0
36 #elif __ide_target("Standalone TestResponder (Debug)") || __ide_target("Standalone TestSearcher (Debug)")
37 #define TARGET_API_MAC_CARBON 1
38 #define OTCARBONAPPLICATION 1
39 #define MDNS_ONLYSYSTEMTASK 1
40 #define MDNS_DEBUGMSGS 1
42 #elif __ide_target("Standalone TestResponder (Classic)") || __ide_target("Standalone TestSearcher (Classic)")
43 #define MDNS_ONLYSYSTEMTASK 0
44 #define MDNS_DEBUGMSGS 0
46 #elif __ide_target("CFM Library for Extensions Folder")
47 #define MDNS_BUILDINGSHAREDLIBRARY 2
49 #elif __ide_target("CFM Library for Extensions (Debug)")
50 #define MDNS_DEBUGMSGS 0
51 #define MDNS_BUILDINGSHAREDLIBRARY 1
53 #elif __ide_target("CFM Stub for clients to link against")
54 #define MDNS_BUILDINGSTUBLIBRARY 1
57 #error Options for this target not found in prefix file
60 // dnssd_clientlib.c assumes malloc() and free(), so we #define them here to be the OT equivalents
61 #if MDNS_BUILDINGSHAREDLIBRARY || MDNS_BUILDINGSTUBLIBRARY
62 #define malloc(x) OTAllocMem(x)
63 #define free(x) OTFreeMem(x)