Add InternationalSupport Stubs

This commit is contained in:
Thomas A 2022-11-13 15:40:01 -08:00
parent 6bbbefebe6
commit 126750fabd
13 changed files with 223 additions and 0 deletions

View File

@ -0,0 +1 @@
../../../../../../../../../../../../src/private-frameworks/InternationalSupport/include/InternationalSupport

View File

@ -0,0 +1 @@
../Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/PrivateFrameworks/InternationalSupport.framework/Headers

View File

@ -23,6 +23,7 @@ add_subdirectory(DeviceLink)
add_subdirectory(DiskImages)
add_subdirectory(DiskManagement)
add_subdirectory(Espresso)
add_subdirectory(InternationalSupport)
add_subdirectory(IOPlatformPluginFamily)
add_subdirectory(kperf)
add_subdirectory(LoggingSupport)

View File

@ -0,0 +1,34 @@
project(InternationalSupport)
remove_sdk_framework(InternationalSupport
PRIVATE
)
set(DYLIB_COMPAT_VERSION "1.0.0")
set(DYLIB_CURRENT_VERSION "69.1.0")
set(FRAMEWORK_VERSION "A")
generate_sdk_framework(InternationalSupport
PRIVATE
VERSION ${FRAMEWORK_VERSION}
HEADER "include/InternationalSupport"
)
add_framework(InternationalSupport
PRIVATE
FAT
CURRENT_VERSION
VERSION ${FRAMEWORK_VERSION}
SOURCES
src/ISUtilities.m
src/NSLocale+InternationalSupportExtensions.m
src/NSBundle+InternationalSupportExtensions.m
DEPENDENCIES
system
objc
Foundation
)

View File

@ -0,0 +1,24 @@
/*
This file is part of Darling.
Copyright (C) 2022 Darling Team
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/
#include <Foundation/Foundation.h>
@interface ISUtilities : NSObject
@end

View File

@ -0,0 +1,30 @@
/*
This file is part of Darling.
Copyright (C) 2022 Darling Team
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _INTERNATIONALSUPPORT_H_
#define _INTERNATIONALSUPPORT_H_
#import <Foundation/Foundation.h>
#import <InternationalSupport/ISUtilities.h>
#import <InternationalSupport/NSBundle+InternationalSupportExtensions.h>
#import <InternationalSupport/NSLocale+InternationalSupportExtensions.h>
#endif

View File

@ -0,0 +1,24 @@
/*
This file is part of Darling.
Copyright (C) 2022 Darling Team
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/
#include <Foundation/Foundation.h>
@interface NSBundle (InternationalSupportExtensions)
@end

View File

@ -0,0 +1,24 @@
/*
This file is part of Darling.
Copyright (C) 2022 Darling Team
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/
#include <Foundation/Foundation.h>
@interface NSLocale (InternationalSupportExtensions)
@end

View File

@ -0,0 +1,34 @@
/*
This file is part of Darling.
Copyright (C) 2022 Darling Team
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/
#import <InternationalSupport/ISUtilities.h>
@implementation ISUtilities
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
{
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
}
- (void)forwardInvocation:(NSInvocation *)anInvocation
{
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
}
@end

View File

@ -0,0 +1,24 @@
/*
This file is part of Darling.
Copyright (C) 2022 Darling Team
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/
#import <InternationalSupport/NSBundle+InternationalSupportExtensions.h>
@implementation NSBundle (InternationalSupportExtensions)
@end

View File

@ -0,0 +1,24 @@
/*
This file is part of Darling.
Copyright (C) 2022 Darling Team
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/
#import <InternationalSupport/NSLocale+InternationalSupportExtensions.h>
@implementation NSLocale (InternationalSupportExtensions)
@end