<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Adding shared library to project in nrfConnect SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90102/adding-shared-library-to-project-in-nrfconnect-sdk</link><description>Hi, 
 I am migrating code from NRF SK 17 to nrfConnect SDK and I would like to create a library of source files to share between different apps. 
 I am able to add the individual source and header file files under a given app directory and compile with</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 Jul 2022 17:24:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90102/adding-shared-library-to-project-in-nrfconnect-sdk" /><item><title>RE: Adding shared library to project in nrfConnect SDK</title><link>https://devzone.nordicsemi.com/thread/377710?ContentTypeID=1</link><pubDate>Tue, 19 Jul 2022 17:24:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:312c015e-07f6-49e8-857b-8b277e57c58a</guid><dc:creator>NickH</dc:creator><description>&lt;p&gt;As an alternative, the common files can also be accessed relative directory paths eg:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;target_sources_ifdef(CONFIG_BT_NUS_UART_ASYNC_ADAPTER app PRIVATE src/uart_async_adapter.c)
target_sources(app PRIVATE ../iemLibrary/src/iemBLE.c)
target_sources(app PRIVATE ../iemLibrary/src/iemRTC.c)
target_sources(app PRIVATE ../iemLibrary/src/iemI2C.c)
target_sources(app PRIVATE ../iemLibrary/src/iemGPIO.c)
target_sources(app PRIVATE ../iemLibrary/src/iemTimer.c)
target_sources(app PRIVATE ../iemLibrary/src/iemLog.c)
target_sources(app PRIVATE ../iemLibrary/src/retained.c)

target_include_directories(app PRIVATE ../iemLibrary/include)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding shared library to project in nrfConnect SDK</title><link>https://devzone.nordicsemi.com/thread/377415?ContentTypeID=1</link><pubDate>Mon, 18 Jul 2022 12:32:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3d4b283-1cf8-4013-a96d-ec8e26e84e7f</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Your case seems fit in at &lt;span style="color:rgba(0, 0, 255, 1);"&gt;Zephyr support community&lt;/span&gt; as we don&amp;#39;t deal with creating/adding libraries in zephyr. You can create a ticket &lt;a href="https://www.zephyrproject.org/contact-us/#:~:text=Contact%20Us-,Technical%20Questions,-The%20fastest%20way"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>