Browse Source

adjusting makefiles for http compile in linux

Sebastien 5 năm trước cách đây
mục cha
commit
f613487c4d
3 tập tin đã thay đổi với 7 bổ sung3 xóa
  1. 3 1
      .cproject
  2. 2 1
      Makefile
  3. 2 1
      components/wifi-manager/component.mk

+ 3 - 1
.cproject

@@ -233,7 +233,7 @@
                             							
                             <targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="cdt.managedbuild.targetPlatform.gnu.cross.640456368" isAbstract="false" osList="all" superClass="cdt.managedbuild.targetPlatform.gnu.cross"/>
                             							
-                            <builder arguments="eclipse_make_wrapper.py" buildPath="${workspace_loc:/squeezelite-esp32}" command="python" id="cdt.managedbuild.builder.gnu.cross.715117345" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" superClass="cdt.managedbuild.builder.gnu.cross"/>
+                            <builder arguments="eclipse_make_wrapper.py -j8" buildPath="${workspace_loc:/squeezelite-esp32}" command="python" id="cdt.managedbuild.builder.gnu.cross.715117345" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" superClass="cdt.managedbuild.builder.gnu.cross"/>
                             							
                             <tool id="cdt.managedbuild.tool.gnu.cross.c.compiler.45996168" name="Cross GCC Compiler" superClass="cdt.managedbuild.tool.gnu.cross.c.compiler">
                                 								
@@ -399,6 +399,8 @@
             		
         </configuration>
         		
+        <configuration configurationName="recovery_v4_windows"/>
+        		
         <configuration configurationName="recovery_windows">
             			
             <resource resourceType="PROJECT" workspacePath="/squeezelite-esp32"/>

+ 2 - 1
Makefile

@@ -13,7 +13,8 @@
 #recovery: EXTRA_CPPFLAGS+=-DRECOVERY_APPLICATION=1
 
 PROJECT_NAME?=squeezelite
-EXTRA_CPPFLAGS+=  -I$(PROJECT_PATH)/main -I$(IDF_PATH)/components/esp_http_server/src -I$(IDF_PATH)/components/esp_http_server/src/port/esp32  -I$(IDF_PATH)/components/esp_http_server/src/util -I$(IDF_PATH)/components/esp_http_server/src/
+EXTRA_CPPFLAGS+=  -I$(PROJECT_PATH)/main 
+
 #/-Wno-error=maybe-uninitialized 
 include $(IDF_PATH)/make/project.mk 
 

+ 2 - 1
components/wifi-manager/component.mk

@@ -7,7 +7,8 @@
 # please read the SDK documents if you need to do this.
 #
 COMPONENT_EMBED_FILES := style.css code.js index.html bootstrap.min.css.gz jquery.min.js.gz popper.min.js.gz bootstrap.min.js.gz
-COMPONENT_ADD_INCLUDEDIRS := . $(IDF_PATH)/components/esp_http_server/src $(IDF_PATH)/components/esp_http_server/src/port/esp32  $(IDF_PATH)/components/esp_http_server/src/util
+COMPONENT_ADD_INCLUDEDIRS := . 
+COMPONENT_EXTRA_INCLUDES += $(IDF_PATH)/components/esp_http_server/src $(IDF_PATH)/components/esp_http_server/src/port/esp32  $(IDF_PATH)/components/esp_http_server/src/util $(IDF_PATH)/components/esp_http_server/src/
 CFLAGS += -D LOG_LOCAL_LEVEL=ESP_LOG_INFO