xiaoxiang781216 commented on code in PR #3624:
URL: https://github.com/apache/nuttx-apps/pull/3624#discussion_r3660101500


##########
graphics/microwindows/Make.defs:
##########
@@ -0,0 +1,50 @@
+############################################################################
+# apps/graphics/microwindows/Make.defs
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.  The
+# ASF licenses this file to you 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.
+#
+############################################################################
+
+ifneq ($(CONFIG_GRAPHICS_MICROWINDOWS),)
+CONFIGURED_APPS += $(APPDIR)/graphics/microwindows
+
+# It allows `microwindows/src/include` import.
+
+CFLAGS += 
${INCDIR_PREFIX}$(APPDIR)/graphics/microwindows/microwindows/src/include
+CXXFLAGS += 
${INCDIR_PREFIX}$(APPDIR)/graphics/microwindows/microwindows/src/include
+CFLAGS += 
${INCDIR_PREFIX}$(APPDIR)/graphics/microwindows/microwindows/src/drivers

Review Comment:
   Does ALL the follow definition is required for compiling application source 
files:
   ```
   CFLAGS += 
${INCDIR_PREFIX}$(APPDIR)/graphics/microwindows/microwindows/src/drivers
   
   HAVE_FNT_SUPPORT = Y
   
   CFLAGS += -DMWCONFIG_FILE='"mwconfig.nuttx"'
   
   CFLAGS += -DNUTTX_FB_PATH=\"$(CONFIG_MICROWINDOWS_FB_PATH)\"
   ifdef CONFIG_MICROWINDOWS_KBD_EVENT_PATH
   CFLAGS += -DNUTTX_KBD_EVENT_PATH=\"$(CONFIG_MICROWINDOWS_KBD_EVENT_PATH)\"
   endif
   ifdef CONFIG_MICROWINDOWS_KBD_RAW_PATH
   CFLAGS += -DNUTTX_KBD_RAW_PATH=\"$(CONFIG_MICROWINDOWS_KBD_RAW_PATH)\"
   endif
   ifdef CONFIG_MICROWINDOWS_MOUSE_PATH
   CFLAGS += -DNUTTX_MOUSE_PATH=\"$(CONFIG_MICROWINDOWS_MOUSE_PATH)\"
   endif
   ifdef CONFIG_MICROWINDOWS_TS_PATH
   CFLAGS += -DNUTTX_TOUCHSCREEN_PATH=\"$(CONFIG_MICROWINDOWS_TS_PATH)\"
   endif
   ```
   or just need when compile microwindows self.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to