Working "together" with China is a pretty idealistic way of seeing it. They've spent the last 20 years asking for european companies (both civilians and military) to give them their industrial and technological secrets before they buy anything, so that they could clone pretty much everything and sell goods back to us for 10% of the price, thanks to a workforce that lives in barely human conditions and no patent system or anything close to it (but also very smart and education oriented people, to be honest). With software, my bet is it's going to go even faster, since everything is pretty much open source those days.
Now, I know things are slowly changing and i don't mean to be too hard on the chinese regime, which managed to let that country grow tremendously, and probably improve the life of many citizens. I just wanted to balance your idealistic point of view a little bit.
We just work together with china and not against it. We sell them fabrication machines, together with services and skill around those.
(And in the end, we export enough weapons to not care.)