Update iOS build bits (#523)

* initial project config from openweave

* rename

* rename insides

* Update Makefile_iOS with correct configure options

* remove WDM_* from config/xxx/CHIPProjectConfig.h

* srsly

* more WDM
diff --git a/Makefile-iOS b/Makefile-iOS
index 851cf77..765e54a 100644
--- a/Makefile-iOS
+++ b/Makefile-iOS
@@ -60,7 +60,7 @@
 DEFINES                                                 = -DNDEBUG=1 -UDEBUG
 endif
 
-configure_OPTIONS                                       = --with-openssl=$(OPENSSL_DIR)
+configure_OPTIONS                                       = --with-crypto=openssl
 
 DEFINES                                                += \
     -DCHIP_CONFIG_ENABLE_TARGETED_LISTEN=$(ENABLE_TARGETED_LISTEN) \
diff --git a/config/ios/CHIPProjectConfig.h b/config/ios/CHIPProjectConfig.h
new file mode 100644
index 0000000..fec5a21
--- /dev/null
+++ b/config/ios/CHIPProjectConfig.h
@@ -0,0 +1,58 @@
+/*
+ *
+ *    Copyright (c) 2020 Project CHIP Authors
+ *    Copyright (c) 2016-2017 Nest Labs, Inc.
+ *    Copyright (c) 2019-2020 Google LLC.
+ *    All rights reserved.
+ *
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ *    @file
+ *      Project-specific configuration file for iOS builds.
+ *
+ */
+#ifndef CHIPPROJECTCONFIG_H
+#define CHIPPROJECTCONFIG_H
+
+// Enable use of an ephemeral UDP source port for locally initiated CHIP exchanges.
+#define CHIP_CONFIG_ENABLE_EPHEMERAL_UDP_PORT 1
+
+// Enable UDP listening on demand in the CHIPDeviceManager
+#define CHIP_CONFIG_DEVICE_MGR_DEMAND_ENABLE_UDP 1
+
+#define INET_CONFIG_OVERRIDE_SYSTEM_TCP_USER_TIMEOUT 0
+
+// Enable passcode encryption configuration 1
+#define CHIP_CONFIG_SUPPORT_PASSCODE_CONFIG1_TEST_ONLY 1
+
+// Uncomment this for a large Tunnel MTU.
+//#define CHIP_CONFIG_TUNNEL_INTERFACE_MTU                           (9000)
+
+// Max number of Bindings per CHIPExchangeManager
+#define CHIP_CONFIG_MAX_BINDINGS 8
+
+#define CHIP_CONFIG_LEGACY_CASE_AUTH_DELEGATE 0
+
+#define CHIP_CONFIG_LEGACY_KEY_EXPORT_DELEGATE 0
+
+#define CHIP_SYSTEM_CONFIG_PACKETBUFFER_MAXALLOC 300
+
+#define CHIP_CONFIG_ENABLE_FUNCT_ERROR_LOGGING 1
+
+#define CHIP_CONFIG_DATA_MANAGEMENT_CLIENT_EXPERIMENTAL 1
+
+#define CHIP_CONFIG_MAX_SOFTWARE_VERSION_LENGTH 128
+
+#endif /* CHIPPROJECTCONFIG_H */
diff --git a/config/standalone/CHIPProjectConfig.h b/config/standalone/CHIPProjectConfig.h
index df0c7ce..f9b6a12 100644
--- a/config/standalone/CHIPProjectConfig.h
+++ b/config/standalone/CHIPProjectConfig.h
@@ -35,8 +35,6 @@
 
 #define CHIP_CONFIG_EVENT_LOGGING_EXTERNAL_EVENT_SUPPORT 1
 
-#define WDM_UPDATE_MAX_ITEMS_IN_TRAIT_DIRTY_PATH_STORE 300
-
 // Uncomment this for a large Tunnel MTU.
 //#define CHIP_CONFIG_TUNNEL_INTERFACE_MTU                           (9000)
 
@@ -53,8 +51,6 @@
 
 #define CHIP_CONFIG_SECURITY_TEST_MODE 1
 
-#define WDM_ENFORCE_EXPIRY_TIME 1
-
 // Increase session idle timeout in stand-alone builds for the convenience of developers.
 #define CHIP_CONFIG_DEFAULT_SECURITY_SESSION_IDLE_TIMEOUT 120000
 
diff --git a/third_party/nlbuild-autotools/.gitignore b/third_party/nlbuild-autotools/.gitignore
new file mode 100644
index 0000000..9d5c538
--- /dev/null
+++ b/third_party/nlbuild-autotools/.gitignore
@@ -0,0 +1,2 @@
+repo.chip
+repo.nlbuild